{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/GMR_replication_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 3 Nov 2021, 15:24:21

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES FIGURE 1 IN THE MAIN TEXT OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Install required package
. 
. ssc install blindschemes, replace
{txt}checking {hilite:blindschemes} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. * Open data
. 
. use "$data/GMR_weekly_cases.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. * Figure 1
. 
. tsset week
{res}
{p 0 15 2}{txt:Time variable: }{res:week}{txt:, }{res:{bind:1}}{txt: to }{res:{bind:52}}{p_end}
{txt}{col 9}Delta: {res}1 unit
{txt}
{com}. 
. twoway (tsline sum_aris, xtitle("Week") ytitle("ARIs (1000s)") scheme(plotplain) xline(27) yaxis(1)) ///
>         (tsline excess, ytitle("Excess cases (1000s)", axis(2)) yaxis(2)), ///
>         legend(label(1 "ARIs (1000s)") label(2 "Excess cases (1000s)") cols(2) position(6)) ///
>         text(1100 31 "Election")
{res}{txt}
{com}.         
. graph export "$output/fg1.eps", as(eps) preview(off) replace
{txt}{p 0 4 2}
file {bf}
/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/fg1.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES TABLES 1 AND 2 IN THE MAIN TEXT OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Install required packages
. 
. ssc install reghdfe, replace
{txt}checking {hilite:reghdfe} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc install estout, replace
{txt}checking {hilite:estout} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. * Open data
. 
. use "$data/GMR_data_main.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. * Table 1
. * H1N1 and electoral performance of the incumbent: difference-in-differences estimates
. 
. egen munid=group(estado municipio)
{res}{txt}
{com}. 
. gen year2=year*year // Generate year^2
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. est clear
{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16127{txt}){col 67}= {res}     17.37
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9593
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9125
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0010
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.6570

{txt}{ralign 83:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1740035{col 31}{space 2} .0417464{col 42}{space 1}   -4.17{col 51}{space 3}0.000{col 59}{space 4}-.2558311{col 72}{space 3} -.092176
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.97957{col 31}{space 2} .0076316{col 42}{space 1} 4059.36{col 51}{space 3}0.000{col 59}{space 4} 30.96462{col 72}{space 3} 30.99453
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15339{txt}){col 67}= {res}      9.80
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0017
{txt}{col 51}R-squared{col 67}= {res}    0.9590
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9116
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.6880

{txt}{ralign 85:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0155956{col 33}{space 2} .0049814{col 44}{space 1}   -3.13{col 53}{space 3}0.002{col 61}{space 4}-.0253598{col 74}{space 3}-.0058315
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 30.99943{col 33}{space 2} .0049278{col 44}{space 1} 6290.74{col 53}{space 3}0.000{col 61}{space 4} 30.98977{col 74}{space 3} 31.00909
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}     12.72
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.9276
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9102
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.0400

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.2193988{col 31}{space 2} .0615268{col 42}{space 1}   -3.57{col 51}{space 3}0.000{col 59}{space 4}-.3400116{col 72}{space 3} -.098786
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 31.04261{col 31}{space 2} .0090244{col 42}{space 1} 3439.87{col 51}{space 3}0.000{col 59}{space 4} 31.02492{col 72}{space 3}  31.0603
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      1.29
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2570
{txt}{col 51}R-squared{col 67}= {res}    0.9272
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9096
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.0664

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0105882{col 33}{space 2} .0093397{col 44}{space 1}   -1.13{col 53}{space 3}0.257{col 61}{space 4}-.0288972{col 74}{space 3} .0077208
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.02295{col 33}{space 2} .0080788{col 44}{space 1} 3840.05{col 53}{space 3}0.000{col 61}{space 4} 31.00711{col 74}{space 3} 31.03879
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      5.84
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0157
{txt}{col 51}R-squared{col 67}= {res}    0.9568
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9326
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    4.3686

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} -.150011{col 31}{space 2} .0621011{col 42}{space 1}   -2.42{col 51}{space 3}0.016{col 59}{space 4}-.2717497{col 72}{space 3}-.0282724
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 31.03243{col 31}{space 2} .0091086{col 42}{space 1} 3406.94{col 51}{space 3}0.000{col 59}{space 4} 31.01457{col 72}{space 3} 31.05028
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 26 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      4.39
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0362
{txt}{col 51}R-squared{col 67}= {res}    0.9568
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9324
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    4.3815

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0136459{col 33}{space 2} .0065125{col 44}{space 1}   -2.10{col 53}{space 3}0.036{col 61}{space 4}-.0264126{col 74}{space 3}-.0008792
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2}  31.0256{col 33}{space 2} .0056333{col 44}{space 1} 5507.58{col 53}{space 3}0.000{col 61}{space 4} 31.01455{col 74}{space 3} 31.03664
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 21 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      4.63
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0315
{txt}{col 51}R-squared{col 67}= {res}    0.9568
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9088
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.0793

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1501178{col 31}{space 2} .0697838{col 42}{space 1}   -2.15{col 51}{space 3}0.031{col 59}{space 4}-.2869171{col 72}{space 3}-.0133186
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 31.03244{col 31}{space 2} .0102354{col 42}{space 1} 3031.86{col 51}{space 3}0.000{col 59}{space 4} 31.01238{col 72}{space 3} 31.05251
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 112 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      3.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0621
{txt}{col 51}R-squared{col 67}= {res}    0.9568
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9086
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.0958

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} -.013669{col 33}{space 2} .0073244{col 44}{space 1}   -1.87{col 53}{space 3}0.062{col 61}{space 4}-.0280274{col 74}{space 3} .0006893
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.02562{col 33}{space 2} .0063356{col 44}{space 1} 4897.05{col 53}{space 3}0.000{col 61}{space 4}  31.0132{col 74}{space 3} 31.03803
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. 
. esttab est*  using "$output/table1.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/table1.tex"'})

{com}.         
. ********************************************************************************
. 
. * Table 2
. * Effect heterogeneity by the timing and the height of the peak
. 
. est clear
{res}{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari##i.timing [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.timing{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.timing#c.change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{txt}note: 2.timing omitted because of collinearity
{txt}note: 2.timing#c.change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  16127{txt}){col 67}= {res}      8.87
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9593
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9126
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0016
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.6554

{txt}{ralign 90:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}           PAN_voteshare{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}year {c |}
{space 19}2009  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 14}change_ari {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 7}year#c.change_ari {c |}
{space 19}2009  {c |}{col 26}{res}{space 2}-.1361315{col 38}{space 2}  .044567{col 49}{space 1}   -3.05{col 58}{space 3}0.002{col 66}{space 4}-.2234877{col 79}{space 3}-.0487753
{txt}{space 24} {c |}
{space 16}2.timing {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 13}year#timing {c |}
{space 17}2009 2  {c |}{col 26}{res}{space 2} .4181074{col 38}{space 2} .1284935{col 49}{space 1}    3.25{col 58}{space 3}0.001{col 66}{space 4} .1662459{col 79}{space 3} .6699689
{txt}{space 24} {c |}
{space 5}timing#c.change_ari {c |}
{space 22}2  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
year#timing#c.change_ari {c |}
{space 17}2009 2  {c |}{col 26}{res}{space 2}-.1502357{col 38}{space 2} .1135217{col 49}{space 1}   -1.32{col 58}{space 3}0.186{col 66}{space 4}-.3727508{col 79}{space 3} .0722793
{txt}{space 24} {c |}
{space 19}_cons {c |}{col 26}{res}{space 2} 30.91891{col 38}{space 2} .0198874{col 49}{space 1} 1554.70{col 58}{space 3}0.000{col 66}{space 4} 30.87993{col 79}{space 3} 30.95789
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. test 2009.year#c.change_ari = 2009.year#2.timing#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari - 2009.year#2.timing#c.change_ari = 0{p_end}

{txt}       F(  1, 16127) ={res}    0.01
{txt}{col 13}Prob > F ={res}    0.9176
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}.01070903
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.91757977
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari_z##i.timing [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.timing{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.timing#c.change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{txt}note: 2.timing omitted because of collinearity
{txt}note: 2.timing#c.change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  15339{txt}){col 67}= {res}      7.31
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0001
{txt}{col 51}R-squared{col 67}= {res}    0.9590
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9117
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0011
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.6865

{txt}{ralign 92:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}             PAN_voteshare{col 28}{c |} Coefficient{col 40}  std. err.{col 52}      t{col 60}   P>|t|{col 68}     [95% con{col 81}f. interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}year {c |}
{space 21}2009  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 14}change_ari_z {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 7}year#c.change_ari_z {c |}
{space 21}2009  {c |}{col 28}{res}{space 2}-.0165142{col 40}{space 2} .0050819{col 51}{space 1}   -3.25{col 60}{space 3}0.001{col 68}{space 4}-.0264752{col 81}{space 3}-.0065531
{txt}{space 26} {c |}
{space 18}2.timing {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 15}year#timing {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2} .3781393{col 40}{space 2} .1276623{col 51}{space 1}    2.96{col 60}{space 3}0.003{col 68}{space 4}  .127906{col 81}{space 3} .6283725
{txt}{space 26} {c |}
{space 5}timing#c.change_ari_z {c |}
{space 24}2  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
year#timing#c.change_ari_z {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2} .0085805{col 40}{space 2} .0139324{col 51}{space 1}    0.62{col 60}{space 3}0.538{col 68}{space 4}-.0187287{col 81}{space 3} .0358897
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2} 30.94253{col 40}{space 2} .0192866{col 51}{space 1} 1604.36{col 60}{space 3}0.000{col 68}{space 4} 30.90472{col 81}{space 3} 30.98033
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. test 2009.year#c.change_ari_z = 2009.year#2.timing#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z - 2009.year#2.timing#c.change_ari_z = 0{p_end}

{txt}       F(  1, 15339) ={res}    2.32
{txt}{col 13}Prob > F ={res}    0.1281
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}2.3152871
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.12812826
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari##i.height [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.height{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.height#c.change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{txt}note: 2.height omitted because of collinearity
{txt}note: 2.height#c.change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  16127{txt}){col 67}= {res}     18.51
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9594
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9127
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0029
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.6526

{txt}{ralign 90:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38}    Robust
{col 1}           PAN_voteshare{col 26}{c |} Coefficient{col 38}  std. err.{col 50}      t{col 58}   P>|t|{col 66}     [95% con{col 79}f. interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 20}year {c |}
{space 19}2009  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 14}change_ari {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 7}year#c.change_ari {c |}
{space 19}2009  {c |}{col 26}{res}{space 2}  .485619{col 38}{space 2} .2159253{col 49}{space 1}    2.25{col 58}{space 3}0.025{col 66}{space 4} .0623814{col 79}{space 3} .9088566
{txt}{space 24} {c |}
{space 16}2.height {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
{space 13}year#height {c |}
{space 17}2009 2  {c |}{col 26}{res}{space 2}-.6585923{col 38}{space 2} .1197912{col 49}{space 1}   -5.50{col 58}{space 3}0.000{col 66}{space 4}-.8933964{col 79}{space 3}-.4237883
{txt}{space 24} {c |}
{space 5}height#c.change_ari {c |}
{space 22}2  {c |}{col 26}{res}{space 2}        0{col 38}{txt}  (omitted)
{space 24} {c |}
year#height#c.change_ari {c |}
{space 17}2009 2  {c |}{col 26}{res}{space 2}-.6074542{col 38}{space 2} .2207629{col 49}{space 1}   -2.75{col 58}{space 3}0.006{col 66}{space 4}-1.040174{col 79}{space 3}-.1747343
{txt}{space 24} {c |}
{space 19}_cons {c |}{col 26}{res}{space 2} 31.14261{col 38}{space 2} .0291781{col 49}{space 1} 1067.33{col 58}{space 3}0.000{col 66}{space 4} 31.08542{col 79}{space 3}  31.1998
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. test 2009.year#c.change_ari = 2009.year#2.height#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari - 2009.year#2.height#c.change_ari = 0{p_end}

{txt}       F(  1, 16127) ={res}    6.33
{txt}{col 13}Prob > F ={res}    0.0119
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}6.3291865
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.01188631
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari_z##i.height [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.height{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.height#c.change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{txt}note: 2.height omitted because of collinearity
{txt}note: 2.height#c.change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  15339{txt}){col 67}= {res}     16.57
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9591
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9118
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0030
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.6821

{txt}{ralign 92:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}             PAN_voteshare{col 28}{c |} Coefficient{col 40}  std. err.{col 52}      t{col 60}   P>|t|{col 68}     [95% con{col 81}f. interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}year {c |}
{space 21}2009  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 14}change_ari_z {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 7}year#c.change_ari_z {c |}
{space 21}2009  {c |}{col 28}{res}{space 2} .0030485{col 40}{space 2} .0123859{col 51}{space 1}    0.25{col 60}{space 3}0.806{col 68}{space 4}-.0212293{col 81}{space 3} .0273263
{txt}{space 26} {c |}
{space 18}2.height {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 15}year#height {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2} -.777249{col 40}{space 2} .1226873{col 51}{space 1}   -6.34{col 60}{space 3}0.000{col 68}{space 4}-1.017731{col 81}{space 3}-.5367674
{txt}{space 26} {c |}
{space 5}height#c.change_ari_z {c |}
{space 24}2  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
year#height#c.change_ari_z {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2}-.0147546{col 40}{space 2} .0136236{col 51}{space 1}   -1.08{col 60}{space 3}0.279{col 68}{space 4}-.0414584{col 81}{space 3} .0119493
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2} 31.19909{col 40}{space 2} .0320036{col 51}{space 1}  974.86{col 60}{space 3}0.000{col 68}{space 4} 31.13636{col 81}{space 3} 31.26182
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. test 2009.year#c.change_ari_z = 2009.year#2.height#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z - 2009.year#2.height#c.change_ari_z = 0{p_end}

{txt}       F(  1, 15339) ={res}    0.49
{txt}{col 13}Prob > F ={res}    0.4835
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}.49105594
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.48346728
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari##i.distance2 [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.distance2{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.distance2#c.change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{txt}note: 2.distance2 omitted because of collinearity
{txt}note: 2.distance2#c.change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  16127{txt}){col 67}= {res}     28.03
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9594
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9127
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0036
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.6510

{txt}{ralign 93:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 28}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 29}{c |}{col 41}    Robust
{col 1}              PAN_voteshare{col 29}{c |} Coefficient{col 41}  std. err.{col 53}      t{col 61}   P>|t|{col 69}     [95% con{col 82}f. interval]
{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}year {c |}
{space 22}2009  {c |}{col 29}{res}{space 2}        0{col 41}{txt}  (omitted)
{space 27} {c |}
{space 17}change_ari {c |}{col 29}{res}{space 2}        0{col 41}{txt}  (omitted)
{space 27} {c |}
{space 10}year#c.change_ari {c |}
{space 22}2009  {c |}{col 29}{res}{space 2}-.1241201{col 41}{space 2} .0416172{col 52}{space 1}   -2.98{col 61}{space 3}0.003{col 69}{space 4}-.2056944{col 82}{space 3}-.0425458
{txt}{space 27} {c |}
{space 16}2.distance2 {c |}{col 29}{res}{space 2}        0{col 41}{txt}  (omitted)
{space 27} {c |}
{space 13}year#distance2 {c |}
{space 20}2009 2  {c |}{col 29}{res}{space 2} .7678316{col 41}{space 2} .0901703{col 52}{space 1}    8.52{col 61}{space 3}0.000{col 69}{space 4} .5910877{col 82}{space 3} .9445755
{txt}{space 27} {c |}
{space 5}distance2#c.change_ari {c |}
{space 25}2  {c |}{col 29}{res}{space 2}        0{col 41}{txt}  (omitted)
{space 27} {c |}
year#distance2#c.change_ari {c |}
{space 20}2009 2  {c |}{col 29}{res}{space 2}-.1377256{col 41}{space 2} .0628841{col 52}{space 1}   -2.19{col 61}{space 3}0.029{col 69}{space 4}-.2609855{col 82}{space 3}-.0144657
{txt}{space 27} {c |}
{space 22}_cons {c |}{col 29}{res}{space 2} 30.81811{col 41}{space 2} .0193855{col 52}{space 1} 1589.75{col 61}{space 3}0.000{col 69}{space 4} 30.78012{col 82}{space 3} 30.85611
{txt}{hline 28}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. test 2009.year#c.change_ari = 2009.year#2.distance2#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari - 2009.year#2.distance2#c.change_ari = 0{p_end}

{txt}       F(  1, 16127) ={res}    0.03
{txt}{col 13}Prob > F ={res}    0.8708
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}.02644784
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.87081343
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari_z##i.distance2 [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.distance2{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.distance2#c.change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{txt}note: 2.distance2 omitted because of collinearity
{txt}note: 2.distance2#c.change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  15339{txt}){col 67}= {res}     24.37
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9591
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9118
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0029
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.6822

{txt}{ralign 95:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 30}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 31}{c |}{col 43}    Robust
{col 1}                PAN_voteshare{col 31}{c |} Coefficient{col 43}  std. err.{col 55}      t{col 63}   P>|t|{col 71}     [95% con{col 84}f. interval]
{hline 30}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 25}year {c |}
{space 24}2009  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 17}change_ari_z {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 10}year#c.change_ari_z {c |}
{space 24}2009  {c |}{col 31}{res}{space 2}-.0129432{col 43}{space 2} .0080483{col 54}{space 1}   -1.61{col 63}{space 3}0.108{col 71}{space 4}-.0287189{col 84}{space 3} .0028325
{txt}{space 29} {c |}
{space 18}2.distance2 {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
{space 15}year#distance2 {c |}
{space 22}2009 2  {c |}{col 31}{res}{space 2} .7328131{col 43}{space 2}  .091516{col 54}{space 1}    8.01{col 63}{space 3}0.000{col 71}{space 4} .5534308{col 84}{space 3} .9121954
{txt}{space 29} {c |}
{space 5}distance2#c.change_ari_z {c |}
{space 27}2  {c |}{col 31}{res}{space 2}        0{col 43}{txt}  (omitted)
{space 29} {c |}
year#distance2#c.change_ari_z {c |}
{space 22}2009 2  {c |}{col 31}{res}{space 2}-.0048711{col 43}{space 2} .0111211{col 54}{space 1}   -0.44{col 63}{space 3}0.661{col 71}{space 4}-.0266697{col 84}{space 3} .0169276
{txt}{space 29} {c |}
{space 24}_cons {c |}{col 31}{res}{space 2}  30.8443{col 43}{space 2} .0200284{col 54}{space 1} 1540.03{col 63}{space 3}0.000{col 71}{space 4} 30.80504{col 84}{space 3} 30.88356
{txt}{hline 30}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. test 2009.year#c.change_ari_z = 2009.year#2.distance2#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z - 2009.year#2.distance2#c.change_ari_z = 0{p_end}

{txt}       F(  1, 15339) ={res}    0.20
{txt}{col 13}Prob > F ={res}    0.6560
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}.1984258
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.6560008
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari##i.coverage [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 436 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.coverage{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.coverage#c.change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{txt}note: 2.coverage omitted because of collinearity
{txt}note: 2.coverage#c.change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,254
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  16124{txt}){col 67}= {res}     61.70
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9597
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9133
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0089
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,125{txt}{col 51}Root MSE{col 67}= {res}    4.6343

{txt}{ralign 92:(Std. err. adjusted for {res:16,125} clusters in {res:clues})}
{hline 27}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 28}{c |}{col 40}    Robust
{col 1}             PAN_voteshare{col 28}{c |} Coefficient{col 40}  std. err.{col 52}      t{col 60}   P>|t|{col 68}     [95% con{col 81}f. interval]
{hline 27}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 22}year {c |}
{space 21}2009  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 16}change_ari {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 9}year#c.change_ari {c |}
{space 21}2009  {c |}{col 28}{res}{space 2}-.3504242{col 40}{space 2} .0786721{col 51}{space 1}   -4.45{col 60}{space 3}0.000{col 68}{space 4}-.5046303{col 81}{space 3}-.1962182
{txt}{space 26} {c |}
{space 16}2.coverage {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
{space 13}year#coverage {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2}-1.680965{col 40}{space 2} .1290883{col 51}{space 1}  -13.02{col 60}{space 3}0.000{col 68}{space 4}-1.933992{col 81}{space 3}-1.427938
{txt}{space 26} {c |}
{space 5}coverage#c.change_ari {c |}
{space 24}2  {c |}{col 28}{res}{space 2}        0{col 40}{txt}  (omitted)
{space 26} {c |}
year#coverage#c.change_ari {c |}
{space 19}2009 2  {c |}{col 28}{res}{space 2} .2599855{col 40}{space 2} .0842688{col 51}{space 1}    3.09{col 60}{space 3}0.002{col 68}{space 4} .0948092{col 81}{space 3} .4251618
{txt}{space 26} {c |}
{space 21}_cons {c |}{col 28}{res}{space 2} 31.36036{col 40}{space 2} .0305683{col 51}{space 1} 1025.91{col 60}{space 3}0.000{col 68}{space 4} 31.30045{col 81}{space 3} 31.42028
{txt}{hline 27}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63627{col 28}{space 1}    63627{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4436{col 28}{space 1}        0{col 40}{result}{space 1}     4436{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127254
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63627
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16125
{txt}
{com}. test 2009.year#c.change_ari = 2009.year#2.coverage#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari - 2009.year#2.coverage#c.change_ari = 0{p_end}

{txt}       F(  1, 16124) ={res}   15.08
{txt}{col 13}Prob > F ={res}    0.0001
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}15.082723
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.00010331
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari_z##i.coverage [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 462 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.coverage{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2bn.coverage#c.change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{txt}note: 2.coverage omitted because of collinearity
{txt}note: 2.coverage#c.change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,004
{txt}Absorbing 2 HDFE groups{col 51}F({res}   3{txt},{res}  15336{txt}){col 67}= {res}     53.17
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9594
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9124
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0078
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,337{txt}{col 51}Root MSE{col 67}= {res}    4.6665

{txt}{ralign 94:(Std. err. adjusted for {res:15,337} clusters in {res:clues})}
{hline 29}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 30}{c |}{col 42}    Robust
{col 1}               PAN_voteshare{col 30}{c |} Coefficient{col 42}  std. err.{col 54}      t{col 62}   P>|t|{col 70}     [95% con{col 83}f. interval]
{hline 29}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 24}year {c |}
{space 23}2009  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 16}change_ari_z {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 9}year#c.change_ari_z {c |}
{space 23}2009  {c |}{col 30}{res}{space 2}-.0191337{col 42}{space 2} .0049165{col 53}{space 1}   -3.89{col 62}{space 3}0.000{col 70}{space 4}-.0287707{col 83}{space 3}-.0094967
{txt}{space 28} {c |}
{space 18}2.coverage {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
{space 15}year#coverage {c |}
{space 21}2009 2  {c |}{col 30}{res}{space 2}-1.595445{col 42}{space 2} .1311287{col 53}{space 1}  -12.17{col 62}{space 3}0.000{col 70}{space 4}-1.852473{col 83}{space 3}-1.338417
{txt}{space 28} {c |}
{space 5}coverage#c.change_ari_z {c |}
{space 26}2  {c |}{col 30}{res}{space 2}        0{col 42}{txt}  (omitted)
{space 28} {c |}
year#coverage#c.change_ari_z {c |}
{space 21}2009 2  {c |}{col 30}{res}{space 2}  .008607{col 42}{space 2} .0105285{col 53}{space 1}    0.82{col 62}{space 3}0.414{col 70}{space 4}  -.01203{col 83}{space 3} .0292441
{txt}{space 28} {c |}
{space 23}_cons {c |}{col 30}{res}{space 2} 31.35746{col 42}{space 2} .0294688{col 53}{space 1} 1064.09{col 62}{space 3}0.000{col 70}{space 4}  31.2997{col 83}{space 3} 31.41522
{txt}{hline 29}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60502{col 28}{space 1}    60502{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4380{col 28}{space 1}        0{col 40}{result}{space 1}     4380{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121004
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60502
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15337
{txt}
{com}. test 2009.year#c.change_ari_z = 2009.year#2.coverage#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z - 2009.year#2.coverage#c.change_ari_z = 0{p_end}

{txt}       F(  1, 15336) ={res}    4.58
{txt}{col 13}Prob > F ={res}    0.0324
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}4.5787954
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.0323857
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari##i.pan [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.pan{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2009bn.year#1bn.pan{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.pan#c.change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{txt}note: 1.pan omitted because of collinearity
{txt}note: 2009.year#1.pan omitted because of collinearity
{txt}note: 1.pan#c.change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  16127{txt}){col 67}= {res}     14.21
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9593
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9126
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0019
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.6549

{txt}{ralign 87:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35}    Robust
{col 1}        PAN_voteshare{col 23}{c |} Coefficient{col 35}  std. err.{col 47}      t{col 55}   P>|t|{col 63}     [95% con{col 76}f. interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 17}year {c |}
{space 16}2009  {c |}{col 23}{res}{space 2}        0{col 35}{txt}  (omitted)
{space 21} {c |}
{space 11}change_ari {c |}{col 23}{res}{space 2}        0{col 35}{txt}  (omitted)
{space 21} {c |}
{space 4}year#c.change_ari {c |}
{space 16}2009  {c |}{col 23}{res}{space 2}-.0924605{col 35}{space 2} .0417052{col 46}{space 1}   -2.22{col 55}{space 3}0.027{col 63}{space 4}-.1742074{col 76}{space 3}-.0107136
{txt}{space 21} {c |}
{space 16}1.pan {c |}{col 23}{res}{space 2}        0{col 35}{txt}  (omitted)
{space 21} {c |}
{space 13}year#pan {c |}
{space 14}2009 1  {c |}{col 23}{res}{space 2}        0{col 35}{txt}  (omitted)
{space 21} {c |}
{space 5}pan#c.change_ari {c |}
{space 19}1  {c |}{col 23}{res}{space 2}        0{col 35}{txt}  (omitted)
{space 21} {c |}
year#pan#c.change_ari {c |}
{space 14}2009 1  {c |}{col 23}{res}{space 2}-.4381693{col 35}{space 2} .1171071{col 46}{space 1}   -3.74{col 55}{space 3}0.000{col 63}{space 4}-.6677123{col 76}{space 3}-.2086263
{txt}{space 21} {c |}
{space 16}_cons {c |}{col 23}{res}{space 2}  30.9804{col 35}{space 2} .0072786{col 46}{space 1} 4256.38{col 55}{space 3}0.000{col 63}{space 4} 30.96614{col 76}{space 3} 30.99467
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est9{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. test 2009.year#c.change_ari = 2009.year#1.pan#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari - 2009.year#1.pan#c.change_ari = 0{p_end}

{txt}       F(  1, 16127) ={res}    6.31
{txt}{col 13}Prob > F ={res}    0.0120
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}6.3128633
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.01199619
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare ib2006.year##c.change_ari_z##i.pan [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.pan{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2009bn.year#1bn.pan{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}1bn.pan#c.change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{txt}note: 1.pan omitted because of collinearity
{txt}note: 2009.year#1.pan omitted because of collinearity
{txt}note: 1.pan#c.change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  15339{txt}){col 67}= {res}      7.92
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.9590
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9116
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.6881

{txt}{ralign 89:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 24}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 25}{c |}{col 37}    Robust
{col 1}          PAN_voteshare{col 25}{c |} Coefficient{col 37}  std. err.{col 49}      t{col 57}   P>|t|{col 65}     [95% con{col 78}f. interval]
{hline 24}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 19}year {c |}
{space 18}2009  {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 23} {c |}
{space 11}change_ari_z {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 23} {c |}
{space 4}year#c.change_ari_z {c |}
{space 18}2009  {c |}{col 25}{res}{space 2}-.0156529{col 37}{space 2} .0039698{col 48}{space 1}   -3.94{col 57}{space 3}0.000{col 65}{space 4}-.0234343{col 78}{space 3}-.0078716
{txt}{space 23} {c |}
{space 18}1.pan {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 23} {c |}
{space 15}year#pan {c |}
{space 16}2009 1  {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 23} {c |}
{space 5}pan#c.change_ari_z {c |}
{space 21}1  {c |}{col 25}{res}{space 2}        0{col 37}{txt}  (omitted)
{space 23} {c |}
year#pan#c.change_ari_z {c |}
{space 16}2009 1  {c |}{col 25}{res}{space 2} .0004493{col 37}{space 2} .0283987{col 48}{space 1}    0.02{col 57}{space 3}0.987{col 65}{space 4}-.0552156{col 78}{space 3} .0561142
{txt}{space 23} {c |}
{space 18}_cons {c |}{col 25}{res}{space 2}  30.9994{col 37}{space 2} .0060407{col 48}{space 1} 5131.73{col 57}{space 3}0.000{col 65}{space 4} 30.98756{col 78}{space 3} 31.01124
{txt}{hline 24}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est10{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. test 2009.year#c.change_ari_z = 2009.year#1.pan#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z - 2009.year#1.pan#c.change_ari_z = 0{p_end}

{txt}       F(  1, 15339) ={res}    0.30
{txt}{col 13}Prob > F ={res}    0.5816
{txt}
{com}. estadd scalar f = r(F)

{txt}added scalar:
                  e(f) =  {res}.30365548
{txt}
{com}. estadd scalar p = r(p)

{txt}added scalar:
                  e(p) =  {res}.58160781
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/table2.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("Timing of peak" "Height of peak" "Distance from healthcare" "Insurance coverage" "PAN governor", pattern(1 0 1 0 1 0 1 0 1 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 f p district stateyear, labels("Number of observations" "Number of sections" "Number of clusters" "\textit{c -(}F{c )-}-statistic" "\textit{c -(}p{c )-}-value" "Section FE" "Municipality-year FE") ///
>         fmt(0 0 0 2)) keep(2009.year#c.change_ari 2009.year#c.change_ari_z ///
>         2009.year#2.timing#c.change_ari 2009.year#2.timing#c.change_ari_z ///
>         2009.year#2.height#c.change_ari 2009.year#2.height#c.change_ari_z ///
>         2009.year#2.coverage#c.change_ari 2009.year#2.coverage#c.change_ari_z ///
>         2009.year#2.distance2#c.change_ari 2009.year#2.distance2#c.change_ari_z ///
>         2009.year#1.pan#c.change_ari 2009.year#1.pan#c.change_ari_z) ///
>         coeflabels(2009.year#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s)" ///
>         2009.year#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score)" ///
>         2009.year#2.timing#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s) $\times$ Late peak" ///
>         2009.year#2.timing#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score) $\times$ Late peak" ///
>         2009.year#2.height#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s) $\times$ High peak" ///
>         2009.year#2.height#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score) $\times$ High peak" ///
>         2009.year#2.distance2#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s) $\times$ Far from healthcare" ///
>         2009.year#2.distance2#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score) $\times$ Far from healthcare" ///
>         2009.year#2.coverage#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s) $\times$ High insurance coverage" ///
>         2009.year#2.coverage#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score) $\times$ High insurance coverage" ///
>         2009.year#1.pan#c.change_ari "1[Year = 2009] $\times$ Excess ARI cases (1000s) $\times$ State controlled by PAN" ///
>         2009.year#1.pan#c.change_ari_z "1[Year = 2009] $\times$ Excess ARI cases (z-score) $\times$ State controlled by PAN") ///
>         order(2009.year#c.change_ari 2009.year#c.change_ari_z ///
>         2009.year#2.timing#c.change_ari 2009.year#2.timing#c.change_ari_z ///
>         2009.year#2.height#c.change_ari 2009.year#2.height#c.change_ari_z ///
>         2009.year#2.distance2#c.change_ari 2009.year#2.distance2#c.change_ari_z ///
>         2009.year#2.coverage#c.change_ari 2009.year#2.coverage#c.change_ari_z ///
>         2009.year#1.pan#c.change_ari 2009.year#1.pan#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}11{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/table2.tex"'})

{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES FIGURES 2 AND 3 IN THE MAIN TEXT OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_data_main.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. * Figure 2
. * H1N1 and electoral performance of the incumbent: event-study estimates
. 
. egen munid=group(estado municipio) // generate municipality identifiers
{res}{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=. // NB. The analyses in the main text use a balanced panel
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a) 
{txt}
{com}. drop if sum_a<6
{txt}(233,907 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. reghdfe PAN_voteshare ib2006.year##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1997bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2000bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2003bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1997.year omitted because of collinearity
{txt}note: 2000.year omitted because of collinearity
{txt}note: 2003.year omitted because of collinearity
{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}   6502{txt}){col 67}= {res}      3.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0020
{txt}{col 51}R-squared{col 67}= {res}    0.9276
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9103
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.0395

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}year {c |}
{space 12}1997  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2000  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2003  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2009  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2012  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
year#c.change_ari {c |}
{space 12}1997  {c |}{col 19}{res}{space 2} .0798793{col 31}{space 2} .0633589{col 42}{space 1}    1.26{col 51}{space 3}0.207{col 59}{space 4}-.0443251{col 72}{space 3} .2040836
{txt}{space 12}2000  {c |}{col 19}{res}{space 2} .1342829{col 31}{space 2} .0786852{col 42}{space 1}    1.71{col 51}{space 3}0.088{col 59}{space 4}-.0199659{col 72}{space 3} .2885316
{txt}{space 12}2003  {c |}{col 19}{res}{space 2} .0179616{col 31}{space 2} .0531902{col 42}{space 1}    0.34{col 51}{space 3}0.736{col 59}{space 4}-.0863086{col 72}{space 3} .1222319
{txt}{space 12}2009  {c |}{col 19}{res}{space 2}-.2489404{col 31}{space 2} .0627456{col 42}{space 1}   -3.97{col 51}{space 3}0.000{col 59}{space 4}-.3719424{col 72}{space 3}-.1259385
{txt}{space 12}2012  {c |}{col 19}{res}{space 2}-.0999497{col 31}{space 2} .0516655{col 42}{space 1}   -1.93{col 51}{space 3}0.053{col 59}{space 4}-.2012311{col 72}{space 3} .0013317
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}  31.0186{col 31}{space 2}  .013468{col 42}{space 1} 2303.14{col 51}{space 3}0.000{col 59}{space 4}  30.9922{col 72}{space 3}   31.045
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N1 = e(N)
{txt}
{com}. local N2 = `N1'/6
{txt}
{com}. local N3 = e(N_clust)
{txt}
{com}. coefplot, vertical scheme(plotplain) keep(1997.year#c.c* 2000.year#c.c* 2003.year#c.c* 2006.year 2009.year#c.c* 2012.year#c.c*) ///
>         omitted baselevels order(1997.year#c.c* 2000.year#c.c* 2003.year#c.c* 2006.year 2009.year#c.c* 2012.year#c.c*) ///
>         coeflabels(1997.year#c.c* = "1997" 2000.year#c.c* = "2000" 2003.year#c.c* = "2003" 2006.year = "2006" 2009.year#c.c* = "2009" 2012.year#c.c* = "2012") ///
>         ylabel(,format(%9.2f)) ytitle("Effect of excess cases (1000s)") xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") yline(0) mlabposition(1) mlabel(string(@b,"%9.3f") + cond(@pval<.01, "***", cond(@pval<.05, "**", cond(@pval<.1, "*", "")))) subtitle("Panel A: Excess cases and PAN vote share", position(11))
{res}{txt}
{com}. graph save "$output/PAN_voteshare_excess_seccion_balanced.gph", replace
{res}{txt}file {bf:/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/PAN_voteshare_excess_seccion_balanced.gph} saved

{com}. 
. test i1997.year#c.change_ari i2000.year#c.change_ari i2003.year#c.change_ari 

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year#c.change_ari = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 2000.year#c.change_ari = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 2003.year#c.change_ari = 0{p_end}

{txt}       F(  3,  6502) ={res}    1.48
{txt}{col 13}Prob > F ={res}    0.2184
{txt}
{com}. test i2009.year#c.change_ari i2012.year#c.change_ari

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 2012.year#c.change_ari = 0{p_end}

{txt}       F(  2,  6502) ={res}    7.99
{txt}{col 13}Prob > F ={res}    0.0003
{txt}
{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. drop if sum_a<6
{txt}(242,157 observations deleted)

{com}. 
. reghdfe PAN_voteshare ib2006.year##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1997bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2000bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2003bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1997.year omitted because of collinearity
{txt}note: 2000.year omitted because of collinearity
{txt}note: 2003.year omitted because of collinearity
{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 2 HDFE groups{col 51}F({res}   5{txt},{res}   6143{txt}){col 67}= {res}      2.31
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0416
{txt}{col 51}R-squared{col 67}= {res}    0.9272
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9096
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.0663

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}year {c |}
{space 14}1997  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2000  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2003  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2009  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2012  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
year#c.change_ari_z {c |}
{space 14}1997  {c |}{col 21}{res}{space 2} .0001156{col 33}{space 2} .0094375{col 44}{space 1}    0.01{col 53}{space 3}0.990{col 61}{space 4}-.0183852{col 74}{space 3} .0186164
{txt}{space 14}2000  {c |}{col 21}{res}{space 2}-.0101989{col 33}{space 2} .0151781{col 44}{space 1}   -0.67{col 53}{space 3}0.502{col 61}{space 4}-.0399533{col 74}{space 3} .0195554
{txt}{space 14}2003  {c |}{col 21}{res}{space 2}-.0063254{col 33}{space 2} .0077528{col 44}{space 1}   -0.82{col 53}{space 3}0.415{col 61}{space 4}-.0215235{col 74}{space 3} .0088728
{txt}{space 14}2009  {c |}{col 21}{res}{space 2}-.0196962{col 33}{space 2} .0070153{col 44}{space 1}   -2.81{col 53}{space 3}0.005{col 61}{space 4}-.0334486{col 74}{space 3}-.0059438
{txt}{space 14}2012  {c |}{col 21}{res}{space 2} -.010957{col 33}{space 2}  .004725{col 44}{space 1}   -2.32{col 53}{space 3}0.020{col 61}{space 4}-.0202197{col 74}{space 3}-.0016943
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.03241{col 33}{space 2} .0118932{col 44}{space 1} 2609.26{col 53}{space 3}0.000{col 61}{space 4} 31.00909{col 74}{space 3} 31.05572
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N1 = e(N)
{txt}
{com}. local N2 = `N1'/6
{txt}
{com}. local N3 = e(N_clust)
{txt}
{com}. coefplot, vertical scheme(plotplain) keep(1997.year#c.c* 2000.year#c.c* 2003.year#c.c* 2006.year 2009.year#c.c* 2012.year#c.c*) ///
>         omitted baselevels order(1997.year#c.c* 2000.year#c.c* 2003.year#c.c* 2006.year 2009.year#c.c* 2012.year#c.c*) ///
>         coeflabels(1997.year#c.c* = "1997" 2000.year#c.c* = "2000" 2003.year#c.c* = "2003" 2006.year = "2006" 2009.year#c.c* = "2009" 2012.year#c.c* = "2012") ///
>         ylabel(,format(%9.2f)) ytitle("Effect of excess cases (z-score)") xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") yline(0) mlabposition(1) mlabel(string(@b,"%9.3f") + cond(@pval<.01, "***", cond(@pval<.05, "**", cond(@pval<.1, "*", "")))) subtitle("Panel B: Excess cases (z-score) and PAN vote share", position(11))
{res}{txt}
{com}. graph save "$output/PAN_voteshare_excess_z_seccion_balanced.gph", replace
{res}{txt}file {bf:/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/PAN_voteshare_excess_z_seccion_balanced.gph} saved

{com}. 
. test i1997.year#c.change_ari_z i2000.year#c.change_ari_z i2003.year#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}1997.year#c.change_ari_z = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 2000.year#c.change_ari_z = 0{p_end}
{p 0 7}{space 1}{text:( 3)}{space 1} 2003.year#c.change_ari_z = 0{p_end}

{txt}       F(  3,  6143) ={res}    1.02
{txt}{col 13}Prob > F ={res}    0.3804
{txt}
{com}. test i2009.year#c.change_ari_z i2012.year#c.change_ari_z

{p 0 7}{space 1}{text:( 1)}{space 1} {res}2009.year#c.change_ari_z = 0{p_end}
{p 0 7}{space 1}{text:( 2)}{space 1} 2012.year#c.change_ari_z = 0{p_end}

{txt}       F(  2,  6143) ={res}    4.48
{txt}{col 13}Prob > F ={res}    0.0114
{txt}
{com}. 
. restore
{txt}
{com}. 
. graph combine "$output/PAN_voteshare_excess_seccion_balanced.gph" ///
>         "$output/PAN_voteshare_excess_z_seccion_balanced.gph", ///
>         cols(2) scheme(plotplain) xsize(16) ysize(9)
{res}{txt}
{com}. graph export "$output/fg2.eps", as(eps) preview(off) replace
{txt}{p 0 4 2}
file {bf}
/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/fg2.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. ********************************************************************************
. 
. * Figure 3
. * Effect of the H1N1 epidemic on voter turnout
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & turnout!=.
{txt}(191,269 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==3
{txt}(118,052 observations deleted)

{com}. 
. reghdfe turnout ib2006.year##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(id)
{res}{txt}(dropped 654 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   190,322
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  63449{txt}){col 67}= {res}     47.71
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9487
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    63,450{txt}{col 51}Root MSE{col 67}= {res}    3.3922

{txt}{ralign 83:(Std. err. adjusted for {res:63,450} clusters in {res:id})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          turnout{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}year {c |}
{space 12}2009  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2012  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
year#c.change_ari {c |}
{space 12}2009  {c |}{col 19}{res}{space 2}-.1828286{col 31}{space 2} .0190852{col 42}{space 1}   -9.58{col 51}{space 3}0.000{col 59}{space 4}-.2202356{col 72}{space 3}-.1454216
{txt}{space 12}2012  {c |}{col 19}{res}{space 2}-.0600438{col 31}{space 2} .0174057{col 42}{space 1}   -3.45{col 51}{space 3}0.001{col 59}{space 4} -.094159{col 72}{space 3}-.0259285
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 58.13374{col 31}{space 2} .0042833{col 42}{space 1} 1.4e+04{col 51}{space 3}0.000{col 59}{space 4} 58.12534{col 72}{space 3} 58.14213
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63450{col 28}{space 1}    63450{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6653{col 28}{space 1}        0{col 40}{result}{space 1}     6653{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N2 =  e(N_clust)
{txt}
{com}. 
. reghdfe turnout ib2006.year##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 654 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   190,322
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  16101{txt}){col 67}= {res}     11.91
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9487
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,102{txt}{col 51}Root MSE{col 67}= {res}    3.3922

{txt}{ralign 83:(Std. err. adjusted for {res:16,102} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          turnout{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}year {c |}
{space 12}2009  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 12}2012  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
year#c.change_ari {c |}
{space 12}2009  {c |}{col 19}{res}{space 2}-.1828286{col 31}{space 2} .0374877{col 42}{space 1}   -4.88{col 51}{space 3}0.000{col 59}{space 4}-.2563087{col 72}{space 3}-.1093485
{txt}{space 12}2012  {c |}{col 19}{res}{space 2}-.0600438{col 31}{space 2} .0220096{col 42}{space 1}   -2.73{col 51}{space 3}0.006{col 59}{space 4}-.1031851{col 72}{space 3}-.0169025
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 58.13374{col 31}{space 2} .0068365{col 42}{space 1} 8503.39{col 51}{space 3}0.000{col 59}{space 4} 58.12034{col 72}{space 3} 58.14714
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63450{col 28}{space 1}    63450{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6653{col 28}{space 1}        0{col 40}{result}{space 1}     6653{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N1 = e(N)
{txt}
{com}. local N3 = e(N_clust)
{txt}
{com}. coefplot, vertical scheme(plotplain) keep(2003.year#* 2006.year 2009.year#* 2012.year#*) ///
>         omitted baselevels order(2003.year#* 2006.year 2009.year#* 2012.year#*) ///
>         coeflabels(2003.year#* = "2003" 2006.year = "2006" 2009.year#* = "2009" 2012.year#* = "2012") ///
>         xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") ylabel(,format(%9.2f)) ytitle("Effect of excess cases (1000s)") xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") yline(0) mlabposition(1) mlabel(string(@b,"%9.3f") + cond(@pval<.01, "***", cond(@pval<.05, "**", cond(@pval<.1, "*", "")))) subtitle("Panel A: Excess cases and turnout", position(11))
{res}{txt}
{com}. graph save "$output/turnout_excess_seccion_balanced.gph", replace
{res}{txt}file {bf:/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/turnout_excess_seccion_balanced.gph} saved

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & turnout!=.
{txt}(200,991 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==3
{txt}(131,548 observations deleted)

{com}. 
. reghdfe turnout ib2006.year##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(id)
{res}{txt}(dropped 696 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   180,975
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  60333{txt}){col 67}= {res}      1.92
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1468
{txt}{col 51}R-squared{col 67}= {res}    0.9488
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}    60,334{txt}{col 51}Root MSE{col 67}= {res}    3.3934

{txt}{ralign 85:(Std. err. adjusted for {res:60,334} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}            turnout{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}year {c |}
{space 14}2009  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2012  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
year#c.change_ari_z {c |}
{space 14}2009  {c |}{col 21}{res}{space 2}-.0057675{col 33}{space 2} .0038252{col 44}{space 1}   -1.51{col 53}{space 3}0.132{col 61}{space 4}-.0132648{col 74}{space 3} .0017299
{txt}{space 14}2012  {c |}{col 21}{res}{space 2} .0011002{col 33}{space 2}  .001988{col 44}{space 1}    0.55{col 53}{space 3}0.580{col 61}{space 4}-.0027962{col 74}{space 3} .0049966
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 58.09373{col 33}{space 2}  .003403{col 44}{space 1} 1.7e+04{col 53}{space 3}0.000{col 61}{space 4} 58.08706{col 74}{space 3}  58.1004
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60334{col 28}{space 1}    60334{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6566{col 28}{space 1}        0{col 40}{result}{space 1}     6566{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N2 =  e(N_clust)
{txt}
{com}. 
. reghdfe turnout ib2006.year##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 696 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2009bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 2009.year omitted because of collinearity
{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   180,975
{txt}Absorbing 2 HDFE groups{col 51}F({res}   2{txt},{res}  15314{txt}){col 67}= {res}      3.82
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0219
{txt}{col 51}R-squared{col 67}= {res}    0.9488
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,315{txt}{col 51}Root MSE{col 67}= {res}    3.3934

{txt}{ralign 85:(Std. err. adjusted for {res:15,315} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}            turnout{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}year {c |}
{space 14}2009  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 14}2012  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
year#c.change_ari_z {c |}
{space 14}2009  {c |}{col 21}{res}{space 2}-.0057675{col 33}{space 2} .0033248{col 44}{space 1}   -1.73{col 53}{space 3}0.083{col 61}{space 4}-.0122845{col 74}{space 3} .0007496
{txt}{space 14}2012  {c |}{col 21}{res}{space 2} .0011002{col 33}{space 2} .0023293{col 44}{space 1}    0.47{col 53}{space 3}0.637{col 61}{space 4}-.0034655{col 74}{space 3} .0056659
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 58.09373{col 33}{space 2} .0037018{col 44}{space 1} 1.6e+04{col 53}{space 3}0.000{col 61}{space 4} 58.08647{col 74}{space 3} 58.10099
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60334{col 28}{space 1}    60334{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6566{col 28}{space 1}        0{col 40}{result}{space 1}     6566{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}
{com}. local N1 = e(N)
{txt}
{com}. local N3 = e(N_clust)
{txt}
{com}. coefplot, vertical scheme(plotplain) keep(2003.year#* 2006.year 2009.year#* 2012.year#*) ///
>         omitted baselevels order(2003.year#* 2006.year 2009.year#* 2012.year#*) ///
>         coeflabels(2003.year#* = "2003" 2006.year = "2006" 2009.year#* = "2009" 2012.year#* = "2012") ///
>         xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") ylabel(,format(%9.3f)) ytitle("Effect of excess cases (z-score)") xtitle("Election") note("Number of observations = `N1'" "Number of sections = `N2'" "Number of clusters = `N3'") yline(0) mlabposition(1) mlabel(string(@b,"%9.3f") + cond(@pval<.01, "***", cond(@pval<.05, "**", cond(@pval<.1, "*", "")))) subtitle("Panel B: Excess cases (z-score) and turnout", position(11))
{res}{txt}
{com}. graph save "$output/turnout_excess_z_seccion_balanced.gph", replace
{res}{txt}file {bf:/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/turnout_excess_z_seccion_balanced.gph} saved

{com}. 
. graph combine "$output/turnout_excess_seccion_balanced.gph" ///
>         "$output/turnout_excess_z_seccion_balanced.gph", ///
>         cols(2) scheme(plotplain) xsize(16) ysize(9)
{res}{txt}
{com}. graph export "$output/fg3.eps", as(eps) preview(off) replace
{txt}{p 0 4 2}
file {bf}
/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/fg3.eps{rm}
saved as
EPS
format
{p_end}

{com}. 
. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES TABLES A1 AND A2 IN APPENDIX A OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_data_main.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. * Table A1
. 
. est clear
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a) 
{txt}
{com}. drop if sum_a<6
{txt}(233,907 observations deleted)

{com}. 
. la var PAN_voteshare "\quad PAN vote share"
{txt}
{com}. la var PRI_voteshare "\quad PRI vote share"
{txt}
{com}. la var others "\quad Other parties' vote share"
{txt}
{com}. la var turnout "\quad Voter turnout"
{txt}
{com}. la var change_ari "\quad Excess cases (1000s)"
{txt}
{com}. la var change_ari_z "\quad Excess cases (z-score)"
{txt}
{com}. 
. estpost summarize PAN_voteshare PRI_voteshare others turnout change_ari change_ari_z

{txt}{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:e(count)}{space 1}{space 1}{ralign 9:e(sum_w)}{space 1}{space 1}{ralign 9:e(mean)}{space 1}{space 1}{ralign 9:e(Var)}{space 1}{space 1}{ralign 9:e(sd)}{space 1}{space 1}{ralign 9:e(min)}{space 1}{space 1}{ralign 9:e(max)}{space 1}{space 1}{ralign 9:e(sum)}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:PAN_votesh~e}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf: 29.01333}}}{space 1}{space 1}{ralign 9:{res:{sf: 292.1721}}}{space 1}{space 1}{ralign 9:{res:{sf: 17.09304}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf: 95.89041}}}{space 1}{space 1}{ralign 9:{res:{sf:  4409620}}}{space 1}
{space 0}{space 0}{ralign 12:PRI_votesh~e}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf: 37.15045}}}{space 1}{space 1}{ralign 9:{res:{sf: 277.3224}}}{space 1}{space 1}{ralign 9:{res:{sf:   16.653}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf:  5646348}}}{space 1}
{space 0}{space 0}{ralign 12:others}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf: 33.83623}}}{space 1}{space 1}{ralign 9:{res:{sf: 380.2892}}}{space 1}{space 1}{ralign 9:{res:{sf:   19.501}}}{space 1}{space 1}{ralign 9:{res:{sf:-3.81e-06}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf:  5142633}}}{space 1}
{space 0}{space 0}{ralign 12:turnout}{space 1}{c |}{space 1}{ralign 9:{res:{sf:    75926}}}{space 1}{space 1}{ralign 9:{res:{sf:    75926}}}{space 1}{space 1}{ralign 9:{res:{sf: 55.31615}}}{space 1}{space 1}{ralign 9:{res:{sf:  171.197}}}{space 1}{space 1}{ralign 9:{res:{sf: 13.08423}}}{space 1}{space 1}{ralign 9:{res:{sf: 4.563758}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf:  4199934}}}{space 1}
{space 0}{space 0}{ralign 12:change_ari}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf:   151986}}}{space 1}{space 1}{ralign 9:{res:{sf: .3548801}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.389916}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.178947}}}{space 1}{space 1}{ralign 9:{res:{sf:-7.230333}}}{space 1}{space 1}{ralign 9:{res:{sf:   17.191}}}{space 1}{space 1}{ralign 9:{res:{sf: 53936.81}}}{space 1}
{space 0}{space 0}{ralign 12:change_ari_z}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   143736}}}{space 1}{space 1}{ralign 9:{res:{sf:   143736}}}{space 1}{space 1}{ralign 9:{res:{sf: 2.120971}}}{space 1}{space 1}{ralign 9:{res:{sf: 107.4798}}}{space 1}{space 1}{ralign 9:{res:{sf: 10.36725}}}{space 1}{space 1}{ralign 9:{res:{sf:-69.66967}}}{space 1}{space 1}{ralign 9:{res:{sf: 379.8965}}}{space 1}{space 1}{ralign 9:{res:{sf: 304859.9}}}{space 1}

{com}. esttab using "$output/tableA1.tex", replace booktabs cells("count mean(fmt(%9.2f)) sd(fmt(%9.2f))") noobs nomtitle nonumber label ///
>         collabels("\textit{c -(}N{c )-}" "Mean" "Std. dev.") refcat(PAN_voteshare "\emph{c -(}Electoral outcomes{c )-}" change_ari "\emph{c -(}H1N1 exposure{c )-}", nolabel)
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableA1.tex"'})

{com}.         
. restore
{txt}
{com}. 
. * Table A2
. 
. est clear
{txt}
{com}. 
. preserve
{txt}
{com}. 
. la var PAN_voteshare "\quad PAN vote share"
{txt}
{com}. la var PRI_voteshare "\quad PRI vote share"
{txt}
{com}. la var others "\quad Other parties' vote share"
{txt}
{com}. la var turnout "\quad Voter turnout"
{txt}
{com}. la var change_ari "\quad Excess cases (1000s)"
{txt}
{com}. la var change_ari_z "\quad Excess cases (z-score)"
{txt}
{com}. 
. estpost summarize PAN_voteshare PRI_voteshare others turnout change_ari change_ari_z

{txt}{space 0}{space 0}{ralign 12:}{space 1}{c |}{space 1}{ralign 9:e(count)}{space 1}{space 1}{ralign 9:e(sum_w)}{space 1}{space 1}{ralign 9:e(mean)}{space 1}{space 1}{ralign 9:e(Var)}{space 1}{space 1}{ralign 9:e(sd)}{space 1}{space 1}{ralign 9:e(min)}{space 1}{space 1}{ralign 9:e(max)}{space 1}{space 1}{ralign 9:e(sum)}{space 1}
{space 0}{hline 13}{c   +}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}{hline 11}
{space 0}{space 0}{ralign 12:PAN_votesh~e}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf: 28.34451}}}{space 1}{space 1}{ralign 9:{res:{sf: 282.6061}}}{space 1}{space 1}{ralign 9:{res:{sf: 16.81089}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf: 98.18182}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.09e+07}}}{space 1}
{space 0}{space 0}{ralign 12:PRI_votesh~e}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf: 36.92922}}}{space 1}{space 1}{ralign 9:{res:{sf:  263.765}}}{space 1}{space 1}{ralign 9:{res:{sf: 16.24084}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.42e+07}}}{space 1}
{space 0}{space 0}{ralign 12:others}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf:   385260}}}{space 1}{space 1}{ralign 9:{res:{sf: 34.72627}}}{space 1}{space 1}{ralign 9:{res:{sf: 360.2634}}}{space 1}{space 1}{ralign 9:{res:{sf: 18.98061}}}{space 1}{space 1}{ralign 9:{res:{sf:-3.81e-06}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.34e+07}}}{space 1}
{space 0}{space 0}{ralign 12:turnout}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   195507}}}{space 1}{space 1}{ralign 9:{res:{sf:   195507}}}{space 1}{space 1}{ralign 9:{res:{sf: 55.50926}}}{space 1}{space 1}{ralign 9:{res:{sf: 170.7653}}}{space 1}{space 1}{ralign 9:{res:{sf: 13.06772}}}{space 1}{space 1}{ralign 9:{res:{sf:        0}}}{space 1}{space 1}{ralign 9:{res:{sf:      100}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.09e+07}}}{space 1}
{space 0}{space 0}{ralign 12:change_ari}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   272127}}}{space 1}{space 1}{ralign 9:{res:{sf:   272127}}}{space 1}{space 1}{ralign 9:{res:{sf: .3665368}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.405967}}}{space 1}{space 1}{ralign 9:{res:{sf: 1.185735}}}{space 1}{space 1}{ralign 9:{res:{sf:-7.230333}}}{space 1}{space 1}{ralign 9:{res:{sf:   17.191}}}{space 1}{space 1}{ralign 9:{res:{sf: 99744.57}}}{space 1}
{space 0}{space 0}{ralign 12:change_ari_z}{space 1}{c |}{space 1}{ralign 9:{res:{sf:   258180}}}{space 1}{space 1}{ralign 9:{res:{sf:   258180}}}{space 1}{space 1}{ralign 9:{res:{sf: 2.078675}}}{space 1}{space 1}{ralign 9:{res:{sf: 84.56143}}}{space 1}{space 1}{ralign 9:{res:{sf: 9.195729}}}{space 1}{space 1}{ralign 9:{res:{sf:-142.1223}}}{space 1}{space 1}{ralign 9:{res:{sf: 379.8965}}}{space 1}{space 1}{ralign 9:{res:{sf: 536672.2}}}{space 1}

{com}. esttab using "$output/tableA2.tex", replace booktabs cells("count mean(fmt(%9.2f)) sd(fmt(%9.2f))") noobs nomtitle nonumber label ///
>         collabels("\textit{c -(}N{c )-}" "Mean" "Std. dev.") refcat(PAN_voteshare "\emph{c -(}Electoral outcomes{c )-}" change_ari "\emph{c -(}H1N1 exposure{c )-}", nolabel)
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableA2.tex"'})

{com}.         
. restore
{txt}
{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES TABLES B1, B2, AND B3 IN APPENDIX B OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_data_main.dta", clear
{txt}
{com}. 
. egen munid=group(estado municipio) // Generate an identifier for municipalities
{res}{txt}
{com}. gen year2=year*year
{txt}
{com}. 
. ********************************************************************************
. 
. * Table B1
. 
. est clear
{txt}
{com}. 
. eststo: reghdfe PAN_voteshare_president ib2006.year##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 3087 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,182
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16115{txt}){col 67}= {res}     34.66
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9646
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9239
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0027
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,116{txt}{col 51}Root MSE{col 67}= {res}    4.3821

{txt}{ralign 83:(Std. err. adjusted for {res:16,116} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}PAN_voteshare_p~t{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}year {c |}
{space 12}2012  {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
year#c.change_ari {c |}
{space 12}2012  {c |}{col 19}{res}{space 2}-.2774019{col 31}{space 2} .0471199{col 42}{space 1}   -5.89{col 51}{space 3}0.000{col 59}{space 4}-.3697622{col 72}{space 3}-.1850417
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.16892{col 31}{space 2} .0103438{col 42}{space 1} 2916.63{col 51}{space 3}0.000{col 59}{space 4} 30.14864{col 72}{space 3} 30.18919
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63591{col 28}{space 1}    63591{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127182
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63591
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16116
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. eststo: reghdfe PAN_voteshare_president ib2006.year##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 2751 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}2012bn.year{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 2012.year omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   120,950
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15327{txt}){col 67}= {res}     12.32
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0004
{txt}{col 51}R-squared{col 67}= {res}    0.9646
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9238
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0014
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,328{txt}{col 51}Root MSE{col 67}= {res}    4.3874

{txt}{ralign 85:(Std. err. adjusted for {res:15,328} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}PAN_voteshare_pre~t{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 15}year {c |}
{space 14}2012  {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
year#c.change_ari_z {c |}
{space 14}2012  {c |}{col 21}{res}{space 2}-.0270176{col 33}{space 2} .0076962{col 44}{space 1}   -3.51{col 53}{space 3}0.000{col 61}{space 4}-.0421031{col 74}{space 3}-.0119322
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 30.12142{col 33}{space 2} .0094453{col 44}{space 1} 3189.05{col 53}{space 3}0.000{col 61}{space 4} 30.10291{col 74}{space 3} 30.13993
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60475{col 28}{space 1}    60475{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4380{col 28}{space 1}        0{col 40}{result}{space 1}     4380{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}120950
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60475
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15328
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. esttab est*  using "$output/tableB1.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE") ///
>         fmt(0 0 0)) keep(2012.year#c.change_ari 2012.year#c.change_ari_z) ///
>         coeflabels(2012.year#c.change_ari "1[Year = 2012] $\times$ Excess ARI cases (1000s)" ///
>         2012.year#c.change_ari_z "1[Year = 2012] $\times$ Excess ARI cases (z-score)") ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}3{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableB1.tex"'})

{com}. 
. est clear
{res}{txt}
{com}. 
. * Table B2
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PRI_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. est clear
{txt}
{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16127{txt}){col 67}= {res}      0.39
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5333
{txt}{col 51}R-squared{col 67}= {res}    0.9457
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8832
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    4.8760

{txt}{ralign 83:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PRI_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0271755{col 31}{space 2} .0436246{col 42}{space 1}   -0.62{col 51}{space 3}0.533{col 59}{space 4}-.1126846{col 72}{space 3} .0583336
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 32.04084{col 31}{space 2}  .007975{col 42}{space 1} 4017.66{col 51}{space 3}0.000{col 59}{space 4}  32.0252{col 72}{space 3} 32.05647
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PRI_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari_z [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15339{txt}){col 67}= {res}      0.00
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.9463
{txt}{col 51}R-squared{col 67}= {res}    0.9450
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8813
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    4.9027

{txt}{ralign 85:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PRI_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0003236{col 33}{space 2} .0048056{col 44}{space 1}   -0.07{col 53}{space 3}0.946{col 61}{space 4}-.0097431{col 74}{space 3} .0090959
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 32.06316{col 33}{space 2} .0047538{col 44}{space 1} 6744.69{col 53}{space 3}0.000{col 61}{space 4} 32.05384{col 74}{space 3} 32.07248
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PRI_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      5.74
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0166
{txt}{col 51}R-squared{col 67}= {res}    0.9020
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8785
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.1677

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PRI_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .1213411{col 31}{space 2} .0506357{col 42}{space 1}    2.40{col 51}{space 3}0.017{col 59}{space 4} .0220784{col 72}{space 3} .2206038
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 33.58696{col 31}{space 2} .0074269{col 42}{space 1} 4522.33{col 51}{space 3}0.000{col 59}{space 4}  33.5724{col 72}{space 3} 33.60152
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PRI_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      4.33
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0374
{txt}{col 51}R-squared{col 67}= {res}    0.9014
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8777
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.1835

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PRI_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0123808{col 33}{space 2}  .005948{col 44}{space 1}    2.08{col 53}{space 3}0.037{col 61}{space 4} .0007206{col 74}{space 3}  .024041
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 33.56164{col 33}{space 2}  .005145{col 44}{space 1} 6523.13{col 53}{space 3}0.000{col 61}{space 4} 33.55155{col 74}{space 3} 33.57172
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PRI_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      0.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.7554
{txt}{col 51}R-squared{col 67}= {res}    0.9385
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9039
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    4.5958

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PRI_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0161634{col 31}{space 2} .0518788{col 42}{space 1}   -0.31{col 51}{space 3}0.755{col 59}{space 4}-.1178629{col 72}{space 3} .0855361
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 33.60713{col 31}{space 2} .0076092{col 42}{space 1} 4416.62{col 51}{space 3}0.000{col 59}{space 4} 33.59221{col 72}{space 3} 33.62205
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PRI_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 26 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      0.21
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.6506
{txt}{col 51}R-squared{col 67}= {res}    0.9381
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9032
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    4.6116

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PRI_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0020098{col 33}{space 2} .0044369{col 44}{space 1}   -0.45{col 53}{space 3}0.651{col 61}{space 4}-.0107076{col 74}{space 3}  .006688
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 33.57408{col 33}{space 2} .0038379{col 44}{space 1} 8748.09{col 53}{space 3}0.000{col 61}{space 4} 33.56656{col 74}{space 3} 33.58161
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PRI_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 21 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      0.08
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.7813
{txt}{col 51}R-squared{col 67}= {res}    0.9385
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8701
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.3436

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PRI_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} -.016185{col 31}{space 2} .0582894{col 42}{space 1}   -0.28{col 51}{space 3}0.781{col 59}{space 4}-.1304514{col 72}{space 3} .0980815
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 33.60713{col 31}{space 2} .0085495{col 42}{space 1} 3930.88{col 51}{space 3}0.000{col 59}{space 4} 33.59037{col 72}{space 3} 33.62389
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PRI_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PRI_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 112 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      0.17
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.6829
{txt}{col 51}R-squared{col 67}= {res}    0.9381
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8691
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.3635

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PRI_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0020378{col 33}{space 2} .0049882{col 44}{space 1}   -0.41{col 53}{space 3}0.683{col 61}{space 4}-.0118165{col 74}{space 3} .0077409
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 33.57411{col 33}{space 2} .0043148{col 44}{space 1} 7781.12{col 53}{space 3}0.000{col 61}{space 4} 33.56565{col 74}{space 3} 33.58257
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableB2.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableB2.tex"'})

{com}.         
. ********************************************************************************
.         
. * Table B3
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & others!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe others 1.post##c.change_ari [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16127{txt}){col 67}= {res}     13.58
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0002
{txt}{col 51}R-squared{col 67}= {res}    0.9655
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9258
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0011
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    5.0065

{txt}{ralign 83:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           others{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .2011791{col 31}{space 2} .0546023{col 42}{space 1}    3.68{col 51}{space 3}0.000{col 59}{space 4} .0941524{col 72}{space 3} .3082057
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 36.97959{col 31}{space 2} .0099818{col 42}{space 1} 3704.69{col 51}{space 3}0.000{col 59}{space 4} 36.96002{col 72}{space 3} 36.99915
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & others!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari_z [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15339{txt}){col 67}= {res}      6.56
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0104
{txt}{col 51}R-squared{col 67}= {res}    0.9652
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9250
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0004
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    5.0292

{txt}{ralign 85:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}             others{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0159193{col 33}{space 2} .0062136{col 44}{space 1}    2.56{col 53}{space 3}0.010{col 61}{space 4} .0037399{col 74}{space 3} .0280986
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 36.93741{col 33}{space 2} .0061467{col 44}{space 1} 6009.31{col 53}{space 3}0.000{col 61}{space 4} 36.92536{col 74}{space 3} 36.94946
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & others!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      5.20
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0226
{txt}{col 51}R-squared{col 67}= {res}    0.9434
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9298
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.1882

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           others{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .0980577{col 31}{space 2}  .042999{col 42}{space 1}    2.28{col 51}{space 3}0.023{col 59}{space 4} .0137655{col 72}{space 3}   .18235
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 35.37043{col 31}{space 2} .0063068{col 42}{space 1} 5608.28{col 51}{space 3}0.000{col 59}{space 4} 35.35807{col 72}{space 3} 35.38279
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & others!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      0.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.7518
{txt}{col 51}R-squared{col 67}= {res}    0.9431
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9294
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.2046

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}             others{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0017926{col 33}{space 2} .0056684{col 44}{space 1}   -0.32{col 53}{space 3}0.752{col 61}{space 4}-.0129047{col 74}{space 3} .0093196
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 35.41541{col 33}{space 2} .0049032{col 44}{space 1} 7222.93{col 53}{space 3}0.000{col 61}{space 4}  35.4058{col 74}{space 3} 35.42503
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & others!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      6.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0092
{txt}{col 51}R-squared{col 67}= {res}    0.9622
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9409
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    4.7618

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           others{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .1661744{col 31}{space 2} .0637702{col 42}{space 1}    2.61{col 51}{space 3}0.009{col 59}{space 4} .0411638{col 72}{space 3} .2911851
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 35.36044{col 31}{space 2} .0093534{col 42}{space 1} 3780.49{col 51}{space 3}0.000{col 59}{space 4}  35.3421{col 72}{space 3} 35.37878
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & others!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 26 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      5.33
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0209
{txt}{col 51}R-squared{col 67}= {res}    0.9620
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9406
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    4.7770

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}             others{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0156557{col 33}{space 2} .0067783{col 44}{space 1}    2.31{col 53}{space 3}0.021{col 61}{space 4} .0023679{col 74}{space 3} .0289435
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 35.40032{col 33}{space 2} .0058632{col 44}{space 1} 6037.72{col 53}{space 3}0.000{col 61}{space 4} 35.38883{col 74}{space 3} 35.41181
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & others!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 21 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      5.38
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0204
{txt}{col 51}R-squared{col 67}= {res}    0.9621
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9201
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.5366

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}           others{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .1663028{col 31}{space 2} .0717091{col 42}{space 1}    2.32{col 51}{space 3}0.020{col 59}{space 4} .0257293{col 72}{space 3} .3068762
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 35.36042{col 31}{space 2} .0105178{col 42}{space 1} 3361.95{col 51}{space 3}0.000{col 59}{space 4}  35.3398{col 72}{space 3} 35.38104
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & others!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe others 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 112 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      4.25
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0393
{txt}{col 51}R-squared{col 67}= {res}    0.9620
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9196
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.5559

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}             others{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0157068{col 33}{space 2} .0076209{col 44}{space 1}    2.06{col 53}{space 3}0.039{col 61}{space 4} .0007671{col 74}{space 3} .0306465
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 35.40028{col 33}{space 2} .0065921{col 44}{space 1} 5370.12{col 53}{space 3}0.000{col 61}{space 4} 35.38735{col 74}{space 3}  35.4132
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableB3.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableB3.tex"'})

{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // NOVEMBER 2, 2021
. 
. // THIS FILE REPLICATES TABLES C1 AND C4-C8 IN APPENDIX C OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_data_main.dta", clear
{txt}
{com}. 
. egen munid=group(estado municipio) // Generate an identifier for municipalities
{res}{txt}
{com}. gen year2=year*year
{txt}
{com}. 
. ********************************************************************************
. 
. * Table C1
. 
. est clear
{res}{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(813 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,428 observations deleted)

{com}. 
. est clear
{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,370
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16127{txt}){col 67}= {res}     19.46
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9436
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8787
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,128{txt}{col 51}Root MSE{col 67}= {res}    5.5776

{txt}{ralign 83:(Std. err. adjusted for {res:16,128} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1938516{col 31}{space 2} .0439466{col 42}{space 1}   -4.41{col 51}{space 3}0.000{col 59}{space 4}-.2799918{col 72}{space 3}-.1077114
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.75932{col 31}{space 2} .0080859{col 42}{space 1} 3680.39{col 51}{space 3}0.000{col 59}{space 4} 29.74347{col 72}{space 3} 29.77517
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63685{col 28}{space 1}    63685{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127370
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63685
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16128
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(7,085 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 460 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,114
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15339{txt}){col 67}= {res}      9.75
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0018
{txt}{col 51}R-squared{col 67}= {res}    0.9433
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8777
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,340{txt}{col 51}Root MSE{col 67}= {res}    5.6124

{txt}{ralign 85:(Std. err. adjusted for {res:15,340} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0157722{col 33}{space 2}   .00505{col 44}{space 1}   -3.12{col 53}{space 3}0.002{col 61}{space 4}-.0256708{col 74}{space 3}-.0058736
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 29.71387{col 33}{space 2} .0051688{col 44}{space 1} 5748.73{col 53}{space 3}0.000{col 61}{space 4} 29.70374{col 74}{space 3} 29.72401
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60557{col 28}{space 1}    60557{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121114
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60557
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15340
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}     18.22
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9025
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8792
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0008
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.9409

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.2989155{col 31}{space 2} .0700287{col 42}{space 1}   -4.27{col 51}{space 3}0.000{col 59}{space 4}-.4361949{col 72}{space 3}-.1616362
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}  29.0684{col 31}{space 2} .0082945{col 42}{space 1} 3504.54{col 51}{space 3}0.000{col 59}{space 4} 29.05214{col 72}{space 3} 29.08466
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      1.73
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1879
{txt}{col 51}R-squared{col 67}= {res}    0.9020
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8784
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.9686

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0141469{col 33}{space 2}  .010743{col 44}{space 1}   -1.32{col 53}{space 3}0.188{col 61}{space 4}-.0352068{col 74}{space 3} .0069131
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 28.98573{col 33}{space 2} .0075976{col 44}{space 1} 3815.12{col 53}{space 3}0.000{col 61}{space 4} 28.97084{col 74}{space 3} 29.00062
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari, absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 3 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      7.15
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0075
{txt}{col 51}R-squared{col 67}= {res}    0.9389
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9045
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    5.2809

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1961525{col 31}{space 2} .0733475{col 42}{space 1}   -2.67{col 51}{space 3}0.008{col 59}{space 4}-.3399378{col 72}{space 3}-.0523672
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.05623{col 31}{space 2} .0086876{col 42}{space 1} 3344.57{col 51}{space 3}0.000{col 59}{space 4}  29.0392{col 72}{space 3} 29.07326
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z, absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 3 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      4.72
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0299
{txt}{col 51}R-squared{col 67}= {res}    0.9389
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9045
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    5.2903

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} -.014996{col 33}{space 2} .0069028{col 44}{space 1}   -2.17{col 53}{space 3}0.030{col 61}{space 4}-.0285279{col 74}{space 3} -.001464
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 28.98633{col 33}{space 2} .0048818{col 44}{space 1} 5937.64{col 53}{space 3}0.000{col 61}{space 4} 28.97676{col 74}{space 3}  28.9959
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(233,907 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari, absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 3 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   151,770
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6502{txt}){col 67}= {res}      5.66
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0174
{txt}{col 51}R-squared{col 67}= {res}    0.9389
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8709
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,503{txt}{col 51}Root MSE{col 67}= {res}    6.1401

{txt}{ralign 83:(Std. err. adjusted for {res:6,503} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1961391{col 31}{space 2} .0824187{col 42}{space 1}   -2.38{col 51}{space 3}0.017{col 59}{space 4}-.3577069{col 72}{space 3}-.0345713
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.05623{col 31}{space 2}  .009762{col 42}{space 1} 2976.46{col 51}{space 3}0.000{col 59}{space 4} 29.03709{col 72}{space 3} 29.07536
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25295{col 28}{space 1}    25295{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    25295{col 28}{space 1}        0{col 40}{result}{space 1}    25295{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}151770
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25295
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6503
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(242,157 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z, absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 240 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 3 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   143,496
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6143{txt}){col 67}= {res}      3.74
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0530
{txt}{col 51}R-squared{col 67}= {res}    0.9389
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8708
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,144{txt}{col 51}Root MSE{col 67}= {res}    6.1528

{txt}{ralign 85:(Std. err. adjusted for {res:6,144} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0150098{col 33}{space 2} .0077567{col 44}{space 1}   -1.94{col 53}{space 3}0.053{col 61}{space 4}-.0302156{col 74}{space 3} .0001961
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 28.98634{col 33}{space 2} .0054857{col 44}{space 1} 5284.02{col 53}{space 3}0.000{col 61}{space 4} 28.97559{col 74}{space 3} 28.99709
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23916{col 28}{space 1}    23916{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23916{col 28}{space 1}        0{col 40}{result}{space 1}    23916{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}143496
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23916
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6144
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. 
. esttab est*  using "$output/tableC1.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC1.tex"'})

{com}. 
. ********************************************************************************
. 
. * Table C4
. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 2723 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 10 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   269,090
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16151{txt}){col 67}= {res}     22.48
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9350
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9108
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,152{txt}{col 51}Root MSE{col 67}= {res}    4.7491

{txt}{ralign 83:(Std. err. adjusted for {res:16,152} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1779631{col 31}{space 2} .0375328{col 42}{space 1}   -4.74{col 51}{space 3}0.000{col 59}{space 4}-.2515315{col 72}{space 3}-.1043947
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.82235{col 31}{space 2} .0078478{col 42}{space 1} 3800.11{col 51}{space 3}0.000{col 59}{space 4} 29.80697{col 72}{space 3} 29.83774
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    64294{col 28}{space 1}    64294{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8675{col 28}{space 1}        0{col 40}{result}{space 1}     8675{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}269090
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}44848.333
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16152
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 2468 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 10 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   255,417
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15362{txt}){col 67}= {res}      3.55
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0597
{txt}{col 51}R-squared{col 67}= {res}    0.9346
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9100
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,363{txt}{col 51}Root MSE{col 67}= {res}    4.7743

{txt}{ralign 85:(Std. err. adjusted for {res:15,363} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0110677{col 33}{space 2} .0058779{col 44}{space 1}   -1.88{col 53}{space 3}0.060{col 61}{space 4} -.022589{col 74}{space 3} .0004536
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 29.82751{col 33}{space 2} .0067885{col 44}{space 1} 4393.81{col 53}{space 3}0.000{col 61}{space 4} 29.81421{col 74}{space 3} 29.84082
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    61126{col 28}{space 1}    61126{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8555{col 28}{space 1}        0{col 40}{result}{space 1}     8555{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}255417
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}42569.5
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15363
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 2723 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 61 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   269,090
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}  16151{txt}){col 67}= {res}      7.05
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0079
{txt}{col 51}R-squared{col 67}= {res}    0.9637
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9260
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,152{txt}{col 51}Root MSE{col 67}= {res}    4.3271

{txt}{ralign 83:(Std. err. adjusted for {res:16,152} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} -.153742{col 31}{space 2} .0578916{col 42}{space 1}   -2.66{col 51}{space 3}0.008{col 59}{space 4}-.2672159{col 72}{space 3} -.040268
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.81729{col 31}{space 2} .0121046{col 42}{space 1} 2463.30{col 51}{space 3}0.000{col 59}{space 4} 29.79356{col 72}{space 3} 29.84102
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    64294{col 28}{space 1}    64294{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8675{col 28}{space 1}        0{col 40}{result}{space 1}     8675{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    64294{col 28}{space 1}        0{col 40}{result}{space 1}    64294{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}269090
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}44848.333
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16152
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 2468 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 63 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   255,417
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}  15362{txt}){col 67}= {res}      4.93
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0264
{txt}{col 51}R-squared{col 67}= {res}    0.9636
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9254
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,363{txt}{col 51}Root MSE{col 67}= {res}    4.3482

{txt}{ralign 85:(Std. err. adjusted for {res:15,363} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0136393{col 33}{space 2} .0061441{col 44}{space 1}   -2.22{col 53}{space 3}0.026{col 61}{space 4}-.0256825{col 74}{space 3}-.0015961
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 29.83048{col 33}{space 2}  .007096{col 44}{space 1} 4203.83{col 53}{space 3}0.000{col 61}{space 4} 29.81657{col 74}{space 3} 29.84439
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    61126{col 28}{space 1}    61126{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8555{col 28}{space 1}        0{col 40}{result}{space 1}     8555{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    61126{col 28}{space 1}        0{col 40}{result}{space 1}    61126{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}255417
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}42569.5
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15363
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 2723 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 62 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   269,090
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}  16151{txt}){col 67}= {res}      4.74
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0295
{txt}{col 51}R-squared{col 67}= {res}    0.9637
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8555
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,152{txt}{col 51}Root MSE{col 67}= {res}    6.0457

{txt}{ralign 83:(Std. err. adjusted for {res:16,152} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1538076{col 31}{space 2} .0706524{col 42}{space 1}   -2.18{col 51}{space 3}0.029{col 59}{space 4}-.2922942{col 72}{space 3}-.0153211
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}  29.8173{col 31}{space 2} .0147728{col 42}{space 1} 2018.40{col 51}{space 3}0.000{col 59}{space 4} 29.78835{col 72}{space 3} 29.84626
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    64294{col 28}{space 1}    64294{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8675{col 28}{space 1}        0{col 40}{result}{space 1}     8675{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    64294{col 28}{space 1}        0{col 40}{result}{space 1}    64294{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    64294{col 28}{space 1}        0{col 40}{result}{space 1}    64294{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}269090
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}44848.333
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16152
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 2468 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 68 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   255,417
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}  15362{txt}){col 67}= {res}      3.31
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0690
{txt}{col 51}R-squared{col 67}= {res}    0.9636
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8535
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,363{txt}{col 51}Root MSE{col 67}= {res}    6.0919

{txt}{ralign 85:(Std. err. adjusted for {res:15,363} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0136566{col 33}{space 2} .0075099{col 44}{space 1}   -1.82{col 53}{space 3}0.069{col 61}{space 4}-.0283769{col 74}{space 3} .0010638
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2}  29.8305{col 33}{space 2} .0086735{col 44}{space 1} 3439.28{col 53}{space 3}0.000{col 61}{space 4}  29.8135{col 74}{space 3}  29.8475
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    61126{col 28}{space 1}    61126{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     8555{col 28}{space 1}        0{col 40}{result}{space 1}     8555{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    61126{col 28}{space 1}        0{col 40}{result}{space 1}    61126{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    61126{col 28}{space 1}        0{col 40}{result}{space 1}    61126{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}255417
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}42569.5
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15363
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. esttab est*  using "$output/tableC4.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}7{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC4.tex"'})

{com}. 
. ********************************************************************************
. 
. * Table C5
. 
. xtile pctiles = change_ari, nq(100)
{txt}
{com}. xtile pctiles2 = change_ari_z, nq(100)
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. keep if  pctiles<=95 & pctiles>=5
{txt}(12,255 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(76 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(657 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 436 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   115,884
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15478{txt}){col 67}= {res}     30.81
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9582
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9095
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0019
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,479{txt}{col 51}Root MSE{col 67}= {res}    4.7504

{txt}{ralign 83:(Std. err. adjusted for {res:15,479} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.7222579{col 31}{space 2} .1301186{col 42}{space 1}   -5.55{col 51}{space 3}0.000{col 59}{space 4}-.9773056{col 72}{space 3}-.4672102
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.69862{col 31}{space 2}  .013772{col 42}{space 1} 2229.06{col 51}{space 3}0.000{col 59}{space 4} 30.67163{col 72}{space 3} 30.72562
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    57942{col 28}{space 1}    57942{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4420{col 28}{space 1}        0{col 40}{result}{space 1}     4420{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}115884
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}57942
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15479
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. keep if  pctiles2<=95 & pctiles2>=5
{txt}(18,021 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(76 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(541 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 472 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   110,198
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  14050{txt}){col 67}= {res}     15.78
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0001
{txt}{col 51}R-squared{col 67}= {res}    0.9592
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9115
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    14,051{txt}{col 51}Root MSE{col 67}= {res}    4.6908

{txt}{ralign 85:(Std. err. adjusted for {res:14,051} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0959552{col 33}{space 2}  .024155{col 44}{space 1}   -3.97{col 53}{space 3}0.000{col 61}{space 4}-.1433022{col 74}{space 3}-.0486082
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.17148{col 33}{space 2} .0152481{col 44}{space 1} 2044.29{col 53}{space 3}0.000{col 61}{space 4} 31.14159{col 74}{space 3} 31.20137
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    55099{col 28}{space 1}    55099{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4304{col 28}{space 1}        0{col 40}{result}{space 1}     4304{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}110198
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}55099
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}14051
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=95 & pctiles>=5
{txt}(138,164 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(109,309 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   138,204
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6213{txt}){col 67}= {res}     64.76
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9262
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9083
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0044
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,214{txt}{col 51}Root MSE{col 67}= {res}    5.1028

{txt}{ralign 83:(Std. err. adjusted for {res:6,214} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-1.604747{col 31}{space 2}  .199413{col 42}{space 1}   -8.05{col 51}{space 3}0.000{col 59}{space 4}-1.995666{col 72}{space 3}-1.213829
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.69122{col 31}{space 2} .0174322{col 42}{space 1} 1760.60{col 51}{space 3}0.000{col 59}{space 4} 30.65705{col 72}{space 3} 30.72539
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23034{col 28}{space 1}    23034{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3960{col 28}{space 1}        0{col 40}{result}{space 1}     3960{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}138204
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23034
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6214
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=95 & pctiles2>=5
{txt}(150,956 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(103,903 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos] if pctiles2<=95, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   130,800
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   5640{txt}){col 67}= {res}     10.37
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0013
{txt}{col 51}R-squared{col 67}= {res}    0.9277
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9101
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     5,641{txt}{col 51}Root MSE{col 67}= {res}    5.0550

{txt}{ralign 85:(Std. err. adjusted for {res:5,641} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.1114122{col 33}{space 2} .0346052{col 44}{space 1}   -3.22{col 53}{space 3}0.001{col 61}{space 4}-.1792517{col 74}{space 3}-.0435728
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.25468{col 33}{space 2} .0181655{col 44}{space 1} 1720.55{col 53}{space 3}0.000{col 61}{space 4} 31.21907{col 74}{space 3} 31.29029
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    21800{col 28}{space 1}    21800{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3894{col 28}{space 1}        0{col 40}{result}{space 1}     3894{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}130800
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}21800
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}5641
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=95 & pctiles>=5
{txt}(138,164 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(109,309 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   138,204
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6213{txt}){col 67}= {res}      1.23
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2677
{txt}{col 51}R-squared{col 67}= {res}    0.9557
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9306
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,214{txt}{col 51}Root MSE{col 67}= {res}    4.4394

{txt}{ralign 83:(Std. err. adjusted for {res:6,214} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.2664957{col 31}{space 2}  .240407{col 42}{space 1}   -1.11{col 51}{space 3}0.268{col 59}{space 4}-.7377766{col 72}{space 3} .2047852
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.57423{col 31}{space 2} .0210158{col 42}{space 1} 1454.82{col 51}{space 3}0.000{col 59}{space 4} 30.53304{col 72}{space 3} 30.61543
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23034{col 28}{space 1}    23034{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3960{col 28}{space 1}        0{col 40}{result}{space 1}     3960{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23034{col 28}{space 1}        0{col 40}{result}{space 1}    23034{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}138204
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23034
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6214
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=95 & pctiles2>=5
{txt}(150,956 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(103,903 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   130,800
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   5640{txt}){col 67}= {res}      0.79
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3753
{txt}{col 51}R-squared{col 67}= {res}    0.9571
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9326
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     5,641{txt}{col 51}Root MSE{col 67}= {res}    4.3750

{txt}{ralign 85:(Std. err. adjusted for {res:5,641} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0398093{col 33}{space 2} .0448995{col 44}{space 1}   -0.89{col 53}{space 3}0.375{col 61}{space 4}-.1278296{col 74}{space 3} .0482111
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.21709{col 33}{space 2} .0235694{col 44}{space 1} 1324.47{col 53}{space 3}0.000{col 61}{space 4} 31.17089{col 74}{space 3}  31.2633
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    21800{col 28}{space 1}    21800{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3894{col 28}{space 1}        0{col 40}{result}{space 1}     3894{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    21800{col 28}{space 1}        0{col 40}{result}{space 1}    21800{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}130800
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}21800
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}5641
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=95 & pctiles>=5
{txt}(138,164 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(109,309 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   138,204
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6213{txt}){col 67}= {res}      0.96
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3260
{txt}{col 51}R-squared{col 67}= {res}    0.9557
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9061
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,214{txt}{col 51}Root MSE{col 67}= {res}    5.1651

{txt}{ralign 83:(Std. err. adjusted for {res:6,214} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.2653772{col 31}{space 2} .2701722{col 42}{space 1}   -0.98{col 51}{space 3}0.326{col 59}{space 4}-.7950082{col 72}{space 3} .2642538
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.57414{col 31}{space 2} .0236178{col 42}{space 1} 1294.54{col 51}{space 3}0.000{col 59}{space 4} 30.52784{col 72}{space 3} 30.62044
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23034{col 28}{space 1}    23034{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3960{col 28}{space 1}        0{col 40}{result}{space 1}     3960{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23034{col 28}{space 1}        0{col 40}{result}{space 1}    23034{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23034{col 28}{space 1}        0{col 40}{result}{space 1}    23034{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}138204
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23034
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6214
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=95 & pctiles2>=5
{txt}(150,956 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(103,903 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 76 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   130,800
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   5640{txt}){col 67}= {res}      0.62
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4312
{txt}{col 51}R-squared{col 67}= {res}    0.9571
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9087
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     5,641{txt}{col 51}Root MSE{col 67}= {res}    5.0917

{txt}{ralign 85:(Std. err. adjusted for {res:5,641} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0397331{col 33}{space 2} .0504791{col 44}{space 1}   -0.79{col 53}{space 3}0.431{col 61}{space 4}-.1386915{col 74}{space 3} .0592252
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.21705{col 33}{space 2} .0264983{col 44}{space 1} 1178.08{col 53}{space 3}0.000{col 61}{space 4}  31.1651{col 74}{space 3}   31.269
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    21800{col 28}{space 1}    21800{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3894{col 28}{space 1}        0{col 40}{result}{space 1}     3894{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    21800{col 28}{space 1}        0{col 40}{result}{space 1}    21800{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    21800{col 28}{space 1}        0{col 40}{result}{space 1}    21800{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}130800
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}21800
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}5641
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableC5.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC5.tex"'})

{com}. 
. ********************************************************************************
. 
. * Table C6
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. keep if  pctiles<=99 & pctiles>=1
{txt}(1,969 observations deleted)

{com}. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(85 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(695 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 434 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   126,134
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16092{txt}){col 67}= {res}     19.01
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9592
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9123
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0010
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,093{txt}{col 51}Root MSE{col 67}= {res}    4.6661

{txt}{ralign 83:(Std. err. adjusted for {res:16,093} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.2320595{col 31}{space 2} .0532185{col 42}{space 1}   -4.36{col 51}{space 3}0.000{col 59}{space 4}-.3363737{col 72}{space 3}-.1277452
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.94041{col 31}{space 2} .0079716{col 42}{space 1} 3881.34{col 51}{space 3}0.000{col 59}{space 4} 30.92478{col 72}{space 3} 30.95603
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63067{col 28}{space 1}    63067{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}126134
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63067
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16093
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. keep if  pctiles2<=99 & pctiles2>=1
{txt}(8,134 observations deleted)

{com}. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(86 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(658 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 456 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   119,984
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15239{txt}){col 67}= {res}     14.52
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0001
{txt}{col 51}R-squared{col 67}= {res}    0.9590
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9115
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0007
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,240{txt}{col 51}Root MSE{col 67}= {res}    4.6902

{txt}{ralign 85:(Std. err. adjusted for {res:15,240} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0488893{col 33}{space 2} .0128316{col 44}{space 1}   -3.81{col 53}{space 3}0.000{col 61}{space 4}-.0740408{col 74}{space 3}-.0237378
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.01039{col 33}{space 2} .0093293{col 44}{space 1} 3323.99{col 53}{space 3}0.000{col 61}{space 4} 30.99211{col 74}{space 3} 31.02868
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    59992{col 28}{space 1}    59992{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4378{col 28}{space 1}        0{col 40}{result}{space 1}     4378{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}119984
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}59992
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15240
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=99 & pctiles>=1
{txt}(116,430 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(118,983 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   150,264
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6481{txt}){col 67}= {res}     14.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0002
{txt}{col 51}R-squared{col 67}= {res}    0.9274
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9100
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0009
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,482{txt}{col 51}Root MSE{col 67}= {res}    5.0479

{txt}{ralign 83:(Std. err. adjusted for {res:6,482} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.3388508{col 31}{space 2} .0902385{col 42}{space 1}   -3.76{col 51}{space 3}0.000{col 59}{space 4} -.515748{col 72}{space 3}-.1619535
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.99802{col 31}{space 2} .0107071{col 42}{space 1} 2895.09{col 51}{space 3}0.000{col 59}{space 4} 30.97703{col 72}{space 3} 31.01901
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25044{col 28}{space 1}    25044{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}150264
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25044
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6482
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=99 & pctiles2>=1
{txt}(130,223 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(113,308 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos] if pctiles2<=99, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   142,128
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   6104{txt}){col 67}= {res}      9.34
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0023
{txt}{col 51}R-squared{col 67}= {res}    0.9270
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9094
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,105{txt}{col 51}Root MSE{col 67}= {res}    5.0686

{txt}{ralign 85:(Std. err. adjusted for {res:6,105} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0646715{col 33}{space 2} .0211663{col 44}{space 1}   -3.06{col 53}{space 3}0.002{col 61}{space 4} -.106165{col 74}{space 3}-.0231781
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.02486{col 33}{space 2} .0126637{col 44}{space 1} 2449.91{col 53}{space 3}0.000{col 61}{space 4} 31.00003{col 74}{space 3} 31.04968
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23688{col 28}{space 1}    23688{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}142128
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23688
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6105
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=99 & pctiles>=1
{txt}(116,430 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(118,983 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   150,264
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6481{txt}){col 67}= {res}      3.33
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0682
{txt}{col 51}R-squared{col 67}= {res}    0.9567
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9324
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,482{txt}{col 51}Root MSE{col 67}= {res}    4.3759

{txt}{ralign 83:(Std. err. adjusted for {res:6,482} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1673236{col 31}{space 2} .0917301{col 42}{space 1}   -1.82{col 51}{space 3}0.068{col 59}{space 4} -.347145{col 72}{space 3} .0124977
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.97766{col 31}{space 2} .0108841{col 42}{space 1} 2846.15{col 51}{space 3}0.000{col 59}{space 4} 30.95633{col 72}{space 3}   30.999
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25044{col 28}{space 1}    25044{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25044{col 28}{space 1}        0{col 40}{result}{space 1}    25044{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}150264
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25044
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6482
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=99 & pctiles2>=1
{txt}(130,223 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(113,308 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 26 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   142,128
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   6104{txt}){col 67}= {res}      1.17
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2790
{txt}{col 51}R-squared{col 67}= {res}    0.9566
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9321
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,105{txt}{col 51}Root MSE{col 67}= {res}    4.3866

{txt}{ralign 85:(Std. err. adjusted for {res:6,105} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0273024{col 33}{space 2} .0252202{col 44}{space 1}   -1.08{col 53}{space 3}0.279{col 61}{space 4}-.0767429{col 74}{space 3}  .022138
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2}  31.0025{col 33}{space 2} .0150891{col 44}{space 1} 2054.63{col 53}{space 3}0.000{col 61}{space 4} 30.97292{col 74}{space 3} 31.03208
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23688{col 28}{space 1}    23688{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23688{col 28}{space 1}        0{col 40}{result}{space 1}    23688{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}142128
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23688
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6105
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}(114,080 missing values generated)

{com}. keep if  pctiles<=99 & pctiles>=1
{txt}(116,430 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(118,983 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 216 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 21 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   150,264
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6481{txt}){col 67}= {res}      2.64
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.1045
{txt}{col 51}R-squared{col 67}= {res}    0.9567
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9086
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,482{txt}{col 51}Root MSE{col 67}= {res}    5.0882

{txt}{ralign 83:(Std. err. adjusted for {res:6,482} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1673121{col 31}{space 2} .1030561{col 42}{space 1}   -1.62{col 51}{space 3}0.105{col 59}{space 4}-.3693361{col 72}{space 3} .0347118
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.97766{col 31}{space 2} .0122279{col 42}{space 1} 2533.35{col 51}{space 3}0.000{col 59}{space 4} 30.95369{col 72}{space 3} 31.00163
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    25044{col 28}{space 1}    25044{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3984{col 28}{space 1}        0{col 40}{result}{space 1}     3984{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    25044{col 28}{space 1}        0{col 40}{result}{space 1}    25044{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    25044{col 28}{space 1}        0{col 40}{result}{space 1}    25044{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}150264
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}25044
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6482
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}(128,008 missing values generated)

{com}. keep if  pctiles2<=99 & pctiles2>=1
{txt}(130,223 observations deleted)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(113,308 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 234 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 108 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   142,128
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   6104{txt}){col 67}= {res}      0.93
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3357
{txt}{col 51}R-squared{col 67}= {res}    0.9566
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9082
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     6,105{txt}{col 51}Root MSE{col 67}= {res}    5.1021

{txt}{ralign 85:(Std. err. adjusted for {res:6,105} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0272872{col 33}{space 2} .0283411{col 44}{space 1}   -0.96{col 53}{space 3}0.336{col 61}{space 4}-.0828457{col 74}{space 3} .0282713
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.00249{col 33}{space 2} .0169563{col 44}{space 1} 1828.37{col 53}{space 3}0.000{col 61}{space 4} 30.96925{col 74}{space 3} 31.03573
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    23688{col 28}{space 1}    23688{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3918{col 28}{space 1}        0{col 40}{result}{space 1}     3918{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    23688{col 28}{space 1}        0{col 40}{result}{space 1}    23688{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    23688{col 28}{space 1}        0{col 40}{result}{space 1}    23688{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}142128
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}23688
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}6105
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableC6.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC6.tex"'})

{com}. 
. ********************************************************************************
. 
. * Table C7
. 
. est clear
{res}{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if excess_deaths!=. & PAN_voteshare!=.
{txt}(86,356 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(86,408 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.excess_deaths [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 876 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}excess_deaths{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: excess_deaths omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    41,940
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  12267{txt}){col 67}= {res}     33.03
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9440
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8616
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0033
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    12,268{txt}{col 51}Root MSE{col 67}= {res}    6.2354

{txt}{ralign 86:(Std. err. adjusted for {res:12,268} clusters in {res:clues})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}       PAN_voteshare{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.post {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 7}excess_deaths {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
post#c.excess_deaths {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0070725{col 34}{space 2} .0012306{col 45}{space 1}   -5.75{col 54}{space 3}0.000{col 62}{space 4}-.0094847{col 75}{space 3}-.0046604
{txt}{space 20} {c |}
{space 15}_cons {c |}{col 22}{res}{space 2} 27.58261{col 34}{space 2} .0059395{col 45}{space 1} 4643.94{col 54}{space 3}0.000{col 62}{space 4} 27.57097{col 75}{space 3} 27.59426
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    20970{col 28}{space 1}    20970{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3994{col 28}{space 1}        0{col 40}{result}{space 1}     3994{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}41940
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}20970
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}12268
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if excess_deaths!=. & PAN_voteshare!=.
{txt}(297,317 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(338,379 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.excess_deaths [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 636 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}excess_deaths{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: excess_deaths omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    46,866
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}   4619{txt}){col 67}= {res}     40.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.8956
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8623
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0047
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     4,620{txt}{col 51}Root MSE{col 67}= {res}    6.3895

{txt}{ralign 86:(Std. err. adjusted for {res:4,620} clusters in {res:clues})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}       PAN_voteshare{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.post {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 7}excess_deaths {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
post#c.excess_deaths {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0122381{col 34}{space 2} .0019325{col 45}{space 1}   -6.33{col 54}{space 3}0.000{col 62}{space 4}-.0160268{col 75}{space 3}-.0084495
{txt}{space 20} {c |}
{space 15}_cons {c |}{col 22}{res}{space 2} 24.97551{col 34}{space 2} .0071314{col 45}{space 1} 3502.20{col 54}{space 3}0.000{col 62}{space 4} 24.96153{col 75}{space 3} 24.98949
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}     7811{col 28}{space 1}     7811{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3534{col 28}{space 1}        0{col 40}{result}{space 1}     3534{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}46866
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}7811
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}4620
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if excess_deaths!=. & PAN_voteshare!=.
{txt}(297,317 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(338,379 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.excess_deaths [aw = total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 636 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}excess_deaths{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 26 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: excess_deaths omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    46,866
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}   4619{txt}){col 67}= {res}     14.93
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0001
{txt}{col 51}R-squared{col 67}= {res}    0.9325
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8859
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     4,620{txt}{col 51}Root MSE{col 67}= {res}    5.8179

{txt}{ralign 86:(Std. err. adjusted for {res:4,620} clusters in {res:clues})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}       PAN_voteshare{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.post {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 7}excess_deaths {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
post#c.excess_deaths {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0046976{col 34}{space 2} .0012156{col 45}{space 1}   -3.86{col 54}{space 3}0.000{col 62}{space 4}-.0070807{col 75}{space 3}-.0023145
{txt}{space 20} {c |}
{space 15}_cons {c |}{col 22}{res}{space 2} 24.94768{col 34}{space 2} .0044857{col 45}{space 1} 5561.65{col 54}{space 3}0.000{col 62}{space 4} 24.93889{col 75}{space 3} 24.95648
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}     7811{col 28}{space 1}     7811{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3534{col 28}{space 1}        0{col 40}{result}{space 1}     3534{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}     7811{col 28}{space 1}        0{col 40}{result}{space 1}     7811{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}46866
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}7811
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}4620
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if excess_deaths!=. & PAN_voteshare!=.
{txt}(297,317 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==6
{txt}(338,379 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.excess_deaths [aw = total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 636 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}excess_deaths{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 22 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: excess_deaths omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}    46,866
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}   4619{txt}){col 67}= {res}     11.57
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0007
{txt}{col 51}R-squared{col 67}= {res}    0.9325
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8410
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}     4,620{txt}{col 51}Root MSE{col 67}= {res}    6.8655

{txt}{ralign 86:(Std. err. adjusted for {res:4,620} clusters in {res:clues})}
{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34}    Robust
{col 1}       PAN_voteshare{col 22}{c |} Coefficient{col 34}  std. err.{col 46}      t{col 54}   P>|t|{col 62}     [95% con{col 75}f. interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.post {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 7}excess_deaths {c |}{col 22}{res}{space 2}        0{col 34}{txt}  (omitted)
{space 20} {c |}
post#c.excess_deaths {c |}
{space 18}1  {c |}{col 22}{res}{space 2}-.0046896{col 34}{space 2} .0013784{col 45}{space 1}   -3.40{col 54}{space 3}0.001{col 62}{space 4} -.007392{col 75}{space 3}-.0019872
{txt}{space 20} {c |}
{space 15}_cons {c |}{col 22}{res}{space 2} 24.94765{col 34}{space 2} .0050867{col 45}{space 1} 4904.47{col 54}{space 3}0.000{col 62}{space 4} 24.93768{col 75}{space 3} 24.95763
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}     7811{col 28}{space 1}     7811{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     3534{col 28}{space 1}        0{col 40}{result}{space 1}     3534{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}     7811{col 28}{space 1}        0{col 40}{result}{space 1}     7811{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}     7811{col 28}{space 1}        0{col 40}{result}{space 1}     7811{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}46866
{txt}
{com}. estadd scalar N2 = e(N)/6

{txt}added scalar:
                 e(N2) =  {res}7811
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}4620
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. 
. esttab est*  using "$output/tableC7.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "1997-2012", pattern(1 1 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.excess_deaths) ///
>         coeflabels(1.post#c.excess_deaths "1[Year $\geq$ 2009] $\times$ Excess deaths") ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}6{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC7.tex"'})

{com}.         
. ********************************************************************************
.         
. * Table C8
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari!=. & turnout!=.
{txt}(869 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(1,538 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe turnout 1.post##c.change_ari [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 455 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,218
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16120{txt}){col 67}= {res}     24.85
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9536
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9002
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0016
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,121{txt}{col 51}Root MSE{col 67}= {res}    3.7974

{txt}{ralign 83:(Std. err. adjusted for {res:16,121} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          turnout{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1862335{col 31}{space 2} .0373556{col 42}{space 1}   -4.99{col 51}{space 3}0.000{col 59}{space 4}-.2594546{col 72}{space 3}-.1130124
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 54.21638{col 31}{space 2}  .006833{col 42}{space 1} 7934.49{col 51}{space 3}0.000{col 59}{space 4} 54.20299{col 72}{space 3} 54.22978
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63609{col 28}{space 1}    63609{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4438{col 28}{space 1}        0{col 40}{result}{space 1}     4438{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127218
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63609
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16121
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(256,661 observations deleted)

{com}. gen a=1 if change_ari_z!=. & turnout!=.
{txt}(7,139 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(7,764 observations deleted)

{com}. 
. eststo: reghdfe turnout 1.post##c.change_ari_z [aw = total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 481 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   120,966
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15332{txt}){col 67}= {res}      3.35
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0670
{txt}{col 51}R-squared{col 67}= {res}    0.9535
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8998
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,333{txt}{col 51}Root MSE{col 67}= {res}    3.8069

{txt}{ralign 85:(Std. err. adjusted for {res:15,333} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}            turnout{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0064553{col 33}{space 2} .0035245{col 44}{space 1}   -1.83{col 53}{space 3}0.067{col 61}{space 4}-.0133637{col 74}{space 3} .0004531
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 54.17128{col 33}{space 2} .0034875{col 44}{space 1} 1.6e+04{col 53}{space 3}0.000{col 61}{space 4} 54.16444{col 74}{space 3} 54.17811
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60483{col 28}{space 1}    60483{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4382{col 28}{space 1}        0{col 40}{result}{space 1}     4382{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}120966
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60483
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15333
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & turnout!=.
{txt}(191,269 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==3
{txt}(118,052 observations deleted)

{com}. 
. eststo: reghdfe turnout 1.post##c.change_ari [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 654 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   190,322
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16101{txt}){col 67}= {res}     19.19
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0000
{txt}{col 51}R-squared{col 67}= {res}    0.9487
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0005
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,102{txt}{col 51}Root MSE{col 67}= {res}    3.3929

{txt}{ralign 83:(Std. err. adjusted for {res:16,102} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}          turnout{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.1110811{col 31}{space 2} .0253596{col 42}{space 1}   -4.38{col 51}{space 3}0.000{col 59}{space 4}-.1607888{col 72}{space 3}-.0613735
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}  58.1339{col 31}{space 2} .0068458{col 42}{space 1} 8491.96{col 51}{space 3}0.000{col 59}{space 4} 58.12048{col 72}{space 3} 58.14732
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63450{col 28}{space 1}    63450{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6653{col 28}{space 1}        0{col 40}{result}{space 1}     6653{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}190322
{txt}
{com}. estadd scalar N2 = e(N)/3

{txt}added scalar:
                 e(N2) =  {res}63440.667
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16102
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & turnout!=.
{txt}(200,991 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==3
{txt}(131,548 observations deleted)

{com}. 
. eststo: reghdfe turnout 1.post##c.change_ari_z [aw = total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 696 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   180,975
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15314{txt}){col 67}= {res}      0.47
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4939
{txt}{col 51}R-squared{col 67}= {res}    0.9488
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9188
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,315{txt}{col 51}Root MSE{col 67}= {res}    3.3935

{txt}{ralign 85:(Std. err. adjusted for {res:15,315} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}            turnout{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0016942{col 33}{space 2} .0024766{col 44}{space 1}   -0.68{col 53}{space 3}0.494{col 61}{space 4}-.0065486{col 74}{space 3} .0031603
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 58.09377{col 33}{space 2} .0036853{col 44}{space 1} 1.6e+04{col 53}{space 3}0.000{col 61}{space 4} 58.08655{col 74}{space 3} 58.10099
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60334{col 28}{space 1}    60334{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     6566{col 28}{space 1}        0{col 40}{result}{space 1}     6566{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}180975
{txt}
{com}. estadd scalar N2 = e(N)/3

{txt}added scalar:
                 e(N2) =  {res}60325
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15315
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableC8.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "2006-2012", pattern(1 0 1 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N2 N3 district stateyear, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}5{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC8.tex"'})

{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // THIS FILE REPLICATES TABLES C2 AND C3 IN APPENDIX C OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_district_level_data.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. gen post=0
{txt}
{com}. replace post=1 if year!=2006
{txt}(600 real changes made)

{com}. 
. * Table C2
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(300 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw=total_votos] if year==2006 | year==2009, absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 5 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       600
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      6.06
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0144
{txt}{col 51}R-squared{col 67}= {res}    0.9468
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8645
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0293
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.6587

{txt}{ralign 83:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0097221{col 31}{space 2} .0039484{col 42}{space 1}   -2.46{col 51}{space 3}0.014{col 59}{space 4}-.0174923{col 72}{space 3} -.001952
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2}  31.3114{col 31}{space 2} .1538877{col 42}{space 1}  203.47{col 51}{space 3}0.000{col 59}{space 4} 31.00856{col 72}{space 3} 31.61424
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       64{col 29}{space 1}        0{col 41}{result}{space 1}       64{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}600
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(300 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw=total_votos] if year==2006 | year==2009 , absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 5 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       600
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      0.91
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3422
{txt}{col 51}R-squared{col 67}= {res}    0.9454
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8608
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0030
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.7216

{txt}{ralign 85:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0740887{col 33}{space 2} .0778706{col 44}{space 1}   -0.95{col 53}{space 3}0.342{col 61}{space 4}-.2273326{col 74}{space 3} .0791552
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 31.07193{col 33}{space 2} .1465667{col 44}{space 1}  212.00{col 53}{space 3}0.000{col 61}{space 4} 30.78349{col 74}{space 3} 31.36036
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       64{col 29}{space 1}        0{col 41}{result}{space 1}       64{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}600
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}
{com}. 
. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari [aw=total_votos], absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 5 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       900
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      7.90
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0053
{txt}{col 51}R-squared{col 67}= {res}    0.9333
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8808
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0185
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.1949

{txt}{ralign 83:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0085913{col 31}{space 2} .0030561{col 42}{space 1}   -2.81{col 51}{space 3}0.005{col 59}{space 4}-.0146055{col 72}{space 3}-.0025772
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.43098{col 31}{space 2}  .177537{col 42}{space 1}  165.77{col 51}{space 3}0.000{col 59}{space 4}  29.0816{col 72}{space 3} 29.78036
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       96{col 29}{space 1}        0{col 41}{result}{space 1}       96{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}900
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z [aw=total_votos], absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 5 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       900
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      0.32
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5742
{txt}{col 51}R-squared{col 67}= {res}    0.9321
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8786
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0003
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.2336

{txt}{ralign 85:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0258249{col 33}{space 2} .0459151{col 44}{space 1}   -0.56{col 53}{space 3}0.574{col 61}{space 4}-.1161827{col 74}{space 3} .0645328
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 29.00441{col 33}{space 2} .1289522{col 44}{space 1}  224.92{col 53}{space 3}0.000{col 61}{space 4} 28.75064{col 74}{space 3} 29.25818
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       96{col 29}{space 1}        0{col 41}{result}{space 1}       96{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}900
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableC2.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "2006-2012", pattern(1 0 1 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N3 district stateyear, labels("Number of observations" "Number of clusters" "District FE" "State-year FE") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}5{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC2.tex"'})

{com}.         
. ********************************************************************************
. 
. * Table C3
. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(300 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari if year==2006 | year==2009, absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       600
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      5.15
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0240
{txt}{col 51}R-squared{col 67}= {res}    0.9438
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8568
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0275
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.7933

{txt}{ralign 83:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0093875{col 31}{space 2} .0041376{col 42}{space 1}   -2.27{col 51}{space 3}0.024{col 59}{space 4}  -.01753{col 72}{space 3} -.001245
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 30.32584{col 31}{space 2} .1772191{col 42}{space 1}  171.12{col 51}{space 3}0.000{col 59}{space 4} 29.97709{col 72}{space 3}  30.6746
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       64{col 29}{space 1}        0{col 41}{result}{space 1}       64{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}600
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(300 observations deleted)

{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z if year==2006 | year==2009, absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       600
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      1.07
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3010
{txt}{col 51}R-squared{col 67}= {res}    0.9424
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8533
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0037
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.8515

{txt}{ralign 85:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0851681{col 33}{space 2} .0821989{col 44}{space 1}   -1.04{col 53}{space 3}0.301{col 61}{space 4}-.2469298{col 74}{space 3} .0765936
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 30.10352{col 33}{space 2} .1734895{col 44}{space 1}  173.52{col 53}{space 3}0.000{col 61}{space 4}  29.7621{col 74}{space 3} 30.44494
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       64{col 29}{space 1}        0{col 41}{result}{space 1}       64{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}600
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & PAN_voteshare!=.
{txt}
{com}. 
. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari, absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       900
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      6.62
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0106
{txt}{col 51}R-squared{col 67}= {res}    0.9293
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8736
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0173
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.3370

{txt}{ralign 83:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}    PAN_voteshare{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} -.008494{col 31}{space 2} .0033023{col 42}{space 1}   -2.57{col 51}{space 3}0.011{col 59}{space 4}-.0149926{col 72}{space 3}-.0019953
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 29.00459{col 31}{space 2} .1885893{col 42}{space 1}  153.80{col 51}{space 3}0.000{col 59}{space 4} 28.63346{col 72}{space 3} 29.37572
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       96{col 29}{space 1}        0{col 41}{result}{space 1}       96{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}900
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & PAN_voteshare!=.
{txt}
{com}. 
. eststo: reghdfe PAN_voteshare 1.post##c.change_ari_z, absorb(id i.estado#i.year) cluster(id)
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 2 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}       900
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}    299{txt}){col 67}= {res}      0.53
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.4687
{txt}{col 51}R-squared{col 67}= {res}    0.9281
{txt}{col 51}Adj R-squared{col 67}= {res}    0.8714
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0006
{txt}{col 1}Number of clusters ({res}id{txt}) {col 30}= {res}       300{txt}{col 51}Root MSE{col 67}= {res}    4.3737

{txt}{ralign 85:(Std. err. adjusted for {res:300} clusters in {res:id})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}      PAN_voteshare{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2}-.0380233{col 33}{space 2} .0524101{col 44}{space 1}   -0.73{col 53}{space 3}0.469{col 61}{space 4}-.1411627{col 74}{space 3} .0651162
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 28.62652{col 33}{space 2} .1474895{col 44}{space 1}  194.09{col 53}{space 3}0.000{col 61}{space 4} 28.33627{col 74}{space 3} 28.91676
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 15}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}   Absorbed FE{col 16}{c |} Categories{col 29} - Redundant{col 41}  = Num. Coefs{col 56}{c |}
{res}{col 1}{text}{hline 15}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}            id{col 16}{c |}{space 1}      300{col 29}{space 1}      300{col 41}{result}{space 1}        0{col 55}{text}*{col 56}{c |}
{res}{col 1}{text}   estado#year{col 16}{c |}{space 1}       96{col 29}{space 1}        0{col 41}{result}{space 1}       96{col 55}{text} {col 56}{c |}
{res}{col 1}{text}{hline 15}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}900
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}300
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableC3.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006-2009" "2006-2012", pattern(1 0 1 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.3f) se(%9.3f) stats(N1 N3 district stateyear, labels("Number of observations" "Number of clusters" "District FE" "State-year FE") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (1000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}5{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableC3.tex"'})

{com}. 
{txt}end of do-file

{com}. do "/var/folders/q3/rmf9jk5n3lbfy0jr6bt7d3ch0000gn/T//SD58535.000000"
{txt}
{com}. ********************************************************************************
. * ELECTORAL REPERCUSSIONS OF A PANDEMIC:  EVIDENCE FROM THE 2009 H1N1 OUTBREAK *
. ********************************************************************************
. 
. // THIS FILE REPLICATES TABLE D1 IN APPENDIX D OF "ELECTORAL 
. // REPERCUSSIONS OF A PANDEMIC: EVIDENCE FROM THE 2009 H1N1 OUTBREAK" BY
. // EMILIO GUTIÉRREZ, JAAKKO MERILÄINEN, AND ADRIÁN RUBLI
. 
. global data "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/data" // Insert data directory here
{txt}
{com}. global output "/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output" // Insert output directory here
{txt}
{com}. 
. * Open data
. 
. use "$data/GMR_night_lights.dta", clear
{txt}
{com}. 
. ********************************************************************************
. 
. gen year2=year*year // Generate year^2
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(323,589 observations deleted)

{com}. gen a=1 if change_ari!=. & nightlights!=.
{txt}(141 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(735 observations deleted)

{com}. 
. est clear
{res}{txt}
{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari [aw=total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 573 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   127,250
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16118{txt}){col 67}= {res}      4.25
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0392
{txt}{col 51}R-squared{col 67}= {res}    0.9976
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9948
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0002
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,119{txt}{col 51}Root MSE{col 67}= {res}    1.7712

{txt}{ralign 83:(Std. err. adjusted for {res:16,119} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}      nightlights{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .0003379{col 31}{space 2} .0001639{col 42}{space 1}    2.06{col 51}{space 3}0.039{col 59}{space 4} .0000167{col 72}{space 3} .0006591
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 42.19473{col 31}{space 2} .0029971{col 42}{space 1} 1.4e+04{col 51}{space 3}0.000{col 59}{space 4} 42.18885{col 72}{space 3}  42.2006
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63625{col 28}{space 1}    63625{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4494{col 28}{space 1}        0{col 40}{result}{space 1}     4494{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est1{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}127250
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}63625
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16119
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. keep if year==2006 | year==2009
{txt}(323,589 observations deleted)

{com}. gen a=1 if change_ari_z!=. & nightlights!=.
{txt}(6,413 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==2
{txt}(6,965 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari_z [aw=total_votos] if year==2006 | year==2009, absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 583 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 7 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   121,010
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15333{txt}){col 67}= {res}      2.83
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.0926
{txt}{col 51}R-squared{col 67}= {res}    0.9976
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9947
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0001
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,334{txt}{col 51}Root MSE{col 67}= {res}    1.7802

{txt}{ralign 85:(Std. err. adjusted for {res:15,334} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        nightlights{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0034267{col 33}{space 2} .0020376{col 44}{space 1}    1.68{col 53}{space 3}0.093{col 61}{space 4}-.0005673{col 74}{space 3} .0074207
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 41.95887{col 33}{space 2} .0020158{col 44}{space 1} 2.1e+04{col 53}{space 3}0.000{col 61}{space 4} 41.95492{col 74}{space 3} 41.96282
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60505{col 28}{space 1}    60505{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}     4436{col 28}{space 1}        0{col 40}{result}{space 1}     4436{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est2{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}121010
{txt}
{com}. estadd scalar N2 = e(N)/2

{txt}added scalar:
                 e(N2) =  {res}60505
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15334
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & nightlights!=.
{txt}(494 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(5,358 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari [aw=total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 1934 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   444,803
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  16113{txt}){col 67}= {res}      1.10
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2936
{txt}{col 51}R-squared{col 67}= {res}    0.9953
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9943
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,114{txt}{col 51}Root MSE{col 67}= {res}    1.8069

{txt}{ralign 83:(Std. err. adjusted for {res:16,114} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}      nightlights{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2}-.0001342{col 31}{space 2} .0001278{col 42}{space 1}   -1.05{col 51}{space 3}0.294{col 59}{space 4}-.0003847{col 72}{space 3} .0001163
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 43.23803{col 31}{space 2} .0028406{col 42}{space 1} 1.5e+04{col 51}{space 3}0.000{col 59}{space 4} 43.23246{col 72}{space 3}  43.2436
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63553{col 28}{space 1}    63553{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15726{col 28}{space 1}        0{col 40}{result}{space 1}    15726{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est3{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}444803
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}63543.286
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16114
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & nightlights!=.
{txt}(22,770 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(27,121 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari_z [aw=total_votos], absorb(id i.munid#i.year) cluster(clues)
{res}{txt}(dropped 1976 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 8 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   422,999
{txt}Absorbing 2 HDFE groups{col 51}F({res}   1{txt},{res}  15327{txt}){col 67}= {res}      0.36
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.5471
{txt}{col 51}R-squared{col 67}= {res}    0.9954
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9944
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,328{txt}{col 51}Root MSE{col 67}= {res}    1.8082

{txt}{ralign 85:(Std. err. adjusted for {res:15,328} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        nightlights{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0008007{col 33}{space 2} .0013296{col 44}{space 1}    0.60{col 53}{space 3}0.547{col 61}{space 4}-.0018055{col 74}{space 3} .0034068
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2}  43.0082{col 33}{space 2} .0016156{col 44}{space 1} 2.7e+04{col 53}{space 3}0.000{col 61}{space 4} 43.00503{col 74}{space 3} 43.01137
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60438{col 28}{space 1}    60438{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15516{col 28}{space 1}        0{col 40}{result}{space 1}    15516{col 54}{text} {col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est4{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}422999
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}60428.429
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15328
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & nightlights!=.
{txt}(494 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(5,358 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari [aw=total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 1934 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 15 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   444,803
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}  16113{txt}){col 67}= {res}      1.45
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2285
{txt}{col 51}R-squared{col 67}= {res}    0.9972
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9958
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,114{txt}{col 51}Root MSE{col 67}= {res}    1.5487

{txt}{ralign 83:(Std. err. adjusted for {res:16,114} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}      nightlights{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .0002203{col 31}{space 2} .0001829{col 42}{space 1}    1.20{col 51}{space 3}0.229{col 59}{space 4}-.0001383{col 72}{space 3} .0005788
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 43.23015{col 31}{space 2} .0040651{col 42}{space 1} 1.1e+04{col 51}{space 3}0.000{col 59}{space 4} 43.22218{col 72}{space 3} 43.23812
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63553{col 28}{space 1}    63553{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15726{col 28}{space 1}        0{col 40}{result}{space 1}    15726{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    63553{col 28}{space 1}        0{col 40}{result}{space 1}    63553{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est5{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}444803
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}63543.286
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16114
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & nightlights!=.
{txt}(22,770 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(27,121 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari_z [aw=total_votos], absorb(id i.munid#i.year i.id#c.year) cluster(clues)
{res}{txt}(dropped 1976 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 18 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   422,999
{txt}Absorbing 3 HDFE groups{col 51}F({res}   1{txt},{res}  15327{txt}){col 67}= {res}      1.25
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2626
{txt}{col 51}R-squared{col 67}= {res}    0.9972
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9959
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,328{txt}{col 51}Root MSE{col 67}= {res}    1.5468

{txt}{ralign 85:(Std. err. adjusted for {res:15,328} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        nightlights{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0023031{col 33}{space 2}  .002056{col 44}{space 1}    1.12{col 53}{space 3}0.263{col 61}{space 4}-.0017269{col 74}{space 3} .0063331
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 43.00637{col 33}{space 2} .0024982{col 44}{space 1} 1.7e+04{col 53}{space 3}0.000{col 61}{space 4} 43.00148{col 74}{space 3} 43.01127
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60438{col 28}{space 1}    60438{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15516{col 28}{space 1}        0{col 40}{result}{space 1}    15516{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    60438{col 28}{space 1}        0{col 40}{result}{space 1}    60438{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est6{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}422999
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}60428.429
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15328
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear "\checkmark"

{txt}added macro:
             e(linear) : "{res:\checkmark}"

{com}. estadd local quadratic " "

{txt}added macro:
          e(quadratic) : "{res: }"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari!=. & nightlights!=.
{txt}(494 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(5,358 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari [aw=total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 1934 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 24 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   444,803
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}  16113{txt}){col 67}= {res}      1.20
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.2735
{txt}{col 51}R-squared{col 67}= {res}    0.9972
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9947
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    16,114{txt}{col 51}Root MSE{col 67}= {res}    1.7430

{txt}{ralign 83:(Std. err. adjusted for {res:16,114} clusters in {res:clues})}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}      nightlights{col 19}{c |} Coefficient{col 31}  std. err.{col 43}      t{col 51}   P>|t|{col 59}     [95% con{col 72}f. interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 11}1.post {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 7}change_ari {c |}{col 19}{res}{space 2}        0{col 31}{txt}  (omitted)
{space 17} {c |}
post#c.change_ari {c |}
{space 15}1  {c |}{col 19}{res}{space 2} .0002204{col 31}{space 2} .0002012{col 42}{space 1}    1.09{col 51}{space 3}0.274{col 59}{space 4}-.0001741{col 72}{space 3} .0006148
{txt}{space 17} {c |}
{space 12}_cons {c |}{col 19}{res}{space 2} 43.23015{col 31}{space 2} .0044728{col 42}{space 1} 9665.19{col 51}{space 3}0.000{col 59}{space 4} 43.22138{col 72}{space 3} 43.23892
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    63553{col 28}{space 1}    63553{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15726{col 28}{space 1}        0{col 40}{result}{space 1}    15726{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    63553{col 28}{space 1}        0{col 40}{result}{space 1}    63553{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    63553{col 28}{space 1}        0{col 40}{result}{space 1}    63553{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est7{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}444803
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}63543.286
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}16114
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. preserve
{txt}
{com}. 
. gen a=1 if change_ari_z!=. & nightlights!=.
{txt}(22,770 missing values generated)

{com}. bysort id: egen sum_a=sum(a)
{txt}
{com}. keep if sum_a==7
{txt}(27,121 observations deleted)

{com}. 
. eststo: reghdfe nightlights 1.post##c.change_ari_z [aw=total_votos], absorb(id i.munid#i.year i.id#c.year i.id#c.year2) cluster(clues)
{res}{txt}(dropped 1976 {browse "http://scorreia.com/research/singletons.pdf":singleton observations})
{res}{txt}note: {res}1bn.post{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}note: {res}change_ari_z{txt} is probably collinear with the fixed effects (all partialled-out values are close to zero; tol = 1.0e-09)
{txt}({browse "http://scorreia.com/research/hdfe.pdf":MWFE estimator} converged in 18 iterations)
{res}{txt}note: 1.post omitted because of collinearity
{txt}note: change_ari_z omitted because of collinearity
{res}
{txt}HDFE Linear regression{col 51}Number of obs{col 67}= {res}   422,999
{txt}Absorbing 4 HDFE groups{col 51}F({res}   1{txt},{res}  15327{txt}){col 67}= {res}      1.04
{txt}Statistics robust to heteroskedasticity{col 51}Prob > F{col 67}= {res}    0.3085
{txt}{col 51}R-squared{col 67}= {res}    0.9972
{txt}{col 51}Adj R-squared{col 67}= {res}    0.9948
{txt}{col 51}Within R-sq.{col 67}= {res}    0.0000
{txt}{col 1}Number of clusters ({res}clues{txt}) {col 30}= {res}    15,328{txt}{col 51}Root MSE{col 67}= {res}    1.7414

{txt}{ralign 85:(Std. err. adjusted for {res:15,328} clusters in {res:clues})}
{hline 20}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 21}{c |}{col 33}    Robust
{col 1}        nightlights{col 21}{c |} Coefficient{col 33}  std. err.{col 45}      t{col 53}   P>|t|{col 61}     [95% con{col 74}f. interval]
{hline 20}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 13}1.post {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 7}change_ari_z {c |}{col 21}{res}{space 2}        0{col 33}{txt}  (omitted)
{space 19} {c |}
post#c.change_ari_z {c |}
{space 17}1  {c |}{col 21}{res}{space 2} .0023042{col 33}{space 2} .0022627{col 44}{space 1}    1.02{col 53}{space 3}0.309{col 61}{space 4} -.002131{col 74}{space 3} .0067394
{txt}{space 19} {c |}
{space 14}_cons {c |}{col 21}{res}{space 2} 43.00637{col 33}{space 2} .0027494{col 44}{space 1} 1.6e+04{col 53}{space 3}0.000{col 61}{space 4} 43.00098{col 74}{space 3} 43.01176
{txt}{hline 20}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{txt}Absorbed degrees of freedom:
{res}{col 1}{text}{hline 14}{c TT}{hline 12}{hline 12}{hline 14}{hline 1}{c TRC}
{col 1}{text}  Absorbed FE{col 15}{c |} Categories{col 28} - Redundant{col 40}  = Num. Coefs{col 55}{c |}
{res}{col 1}{text}{hline 14}{c +}{hline 12}{hline 12}{hline 14}{hline 1}{c RT}
{col 1}{text}           id{col 15}{c |}{space 1}    60438{col 28}{space 1}    60438{col 40}{result}{space 1}        0{col 54}{text}*{col 55}{c |}
{res}{col 1}{text}   munid#year{col 15}{c |}{space 1}    15516{col 28}{space 1}        0{col 40}{result}{space 1}    15516{col 54}{text} {col 55}{c |}
{res}{col 1}{text}    id#c.year{col 15}{c |}{space 1}    60438{col 28}{space 1}        0{col 40}{result}{space 1}    60438{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}   id#c.year2{col 15}{c |}{space 1}    60438{col 28}{space 1}        0{col 40}{result}{space 1}    60438{col 54}{text}?{col 55}{c |}
{res}{col 1}{text}{hline 14}{c BT}{hline 12}{hline 12}{hline 14}{hline 1}{c BRC}
? = number of redundant parameters may be higher
* = FE nested within cluster; treated as redundant for DoF computation
{res}{txt}({res}est8{txt} stored)

{com}. estadd scalar N1 = e(N)

{txt}added scalar:
                 e(N1) =  {res}422999
{txt}
{com}. estadd scalar N2 = e(N)/7

{txt}added scalar:
                 e(N2) =  {res}60428.429
{txt}
{com}. estadd scalar N3 = e(N_clust)

{txt}added scalar:
                 e(N3) =  {res}15328
{txt}
{com}. estadd local district "\checkmark"

{txt}added macro:
           e(district) : "{res:\checkmark}"

{com}. estadd local stateyear "\checkmark"

{txt}added macro:
          e(stateyear) : "{res:\checkmark}"

{com}. estadd local linear " "

{txt}added macro:
             e(linear) : "{res: }"

{com}. estadd local quadratic "\checkmark"

{txt}added macro:
          e(quadratic) : "{res:\checkmark}"

{com}. 
. restore
{txt}
{com}. 
. esttab est*  using "$output/tableD1.tex", replace noomitted nobaselevels booktabs  mlabels(none) ///
>         compress lines star(* .1 ** .05 *** .01) label ///
>         mgroups("2006 and 2009" "2006-2012", pattern(1 0 1 0 0 0 0 0) prefix(\multicolumn{c -(}@span{c )-}{c -(}c{c )-}{c -(}) suffix({c )-}) span erepeat(\cmidrule(lr){c -(}@span{c )-}))  ///
>         b(%9.5f) se(%9.5f) stats(N1 N2 N3 district stateyear linear quadratic, labels("Number of observations" "Number of sections" "Number of clusters" "Section FE" "Municipality-year FE" "Linear time trend" "Quadratic time trend") ///
>         fmt(0 0 0)) keep(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         coeflabels(1.post#c.change_ari "1[Year $\geq$ 2009] $\times$ Excess ARI cases (10,000s)" ///
>         1.post#c.change_ari_z "1[Year $\geq$ 2009] $\times$ Excess ARI cases (z-score)") ///
>         order(1.post#c.change_ari 1.post#c.change_ari_z) ///
>         nodepvars nomtitle prehead(\begin{c -(}tabular{c )-}{c -(}l*{c -(}9{c )-}{c -(}c{c )-}{c )-} \toprule) ///
>         postfoot(\bottomrule \end{c -(}tabular{c )-})
{res}{txt}(output written to {browse  `"/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/output/tableD1.tex"'})

{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/jaakko/Dropbox/Jaakko_Adrian_Emilio/submissions/JoP/final/replication_materials/GMR_replication_log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 3 Nov 2021, 16:51:32
{txt}{.-}
{smcl}
{txt}{sf}{ul off}